You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just like some DBs/drivers don't support table names in all circumstances, which affects qualified column names, PostgreSQL actually runs an additional query under the hood to get table names for columns used in a query, if you call .getTableName() (other ResultSetMetaData is directly available, such as column types, however).
MySQL provides table names directly (at least based on the protocol implementation in the source code in the 8.x driver) in the metadata and doesn't require additional queries.
It is unknown what other DBs/drivers do -- but MS SQL Server only provides useful .getTableName() results when queries are executing with specific settings, and Oracle doesn't provide it at all.
The text was updated successfully, but these errors were encountered:
SELECTc.oid, a.attnum, a.attname, c.relname, n.nspname,
a.attnotnullOR (t.typtype='d'ANDt.typnotnull),
pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE'%nextval(%'FROMpg_catalog.pg_class c JOINpg_catalog.pg_namespace n
ON (c.relnamespace=n.oid) JOINpg_catalog.pg_attribute a
ON (c.oid=a.attrelid) JOINpg_catalog.pg_type t ON (a.atttypid=t.oid) LEFT JOINpg_catalog.pg_attrdef d ON (d.adrelid=a.attrelidANDd.adnum=a.attnum) JOIN (SELECT32824ASoid , 1AS attnum UNION ALLSELECT32824, 2UNION ALLSELECT32824, 3UNION ALLSELECT32824, 4UNION ALLSELECT32824, 5UNION ALLSELECT32824, 6UNION ALLSELECT32824, 8UNION ALLSELECT32824,
9UNION ALLSELECT32835, 1UNION ALLSELECT32835, 2UNION ALLSELECT32835, 3) vals ON (c.oid=vals.oidANDa.attnum=vals.attnum)
Just like some DBs/drivers don't support table names in all circumstances, which affects qualified column names, PostgreSQL actually runs an additional query under the hood to get table names for columns used in a query, if you call
.getTableName()
(otherResultSetMetaData
is directly available, such as column types, however).MySQL provides table names directly (at least based on the protocol implementation in the source code in the 8.x driver) in the metadata and doesn't require additional queries.
It is unknown what other DBs/drivers do -- but MS SQL Server only provides useful
.getTableName()
results when queries are executing with specific settings, and Oracle doesn't provide it at all.The text was updated successfully, but these errors were encountered: