Skip to content
Permalink
Browse files

change IS_GENERATED to IS_GENERATEDCOLUMN as per spec (#1485)

  • Loading branch information...
davecramer committed May 28, 2019
1 parent 8bd9062 commit 17c4bcfb59e846c593093752f2e30dd97bb4b338
@@ -1479,7 +1479,7 @@ public ResultSet getColumns(String catalog, String schemaPattern, String tableNa
f[20] = new Field("SCOPE_TABLE", Oid.VARCHAR);
f[21] = new Field("SOURCE_DATA_TYPE", Oid.INT2);
f[22] = new Field("IS_AUTOINCREMENT", Oid.VARCHAR);
f[23] = new Field( "IS_GENERATED", Oid.VARCHAR);
f[23] = new Field( "IS_GENERATEDCOLUMN", Oid.VARCHAR);

String sql;
// a.attnum isn't decremented when preceding columns are dropped,
@@ -476,7 +476,7 @@ public void testColumns() throws SQLException {
"DECIMAL_DIGITS", "NUM_PREC_RADIX", "NULLABLE", "REMARKS",
"COLUMN_DEF","SQL_DATA_TYPE","SQL_DATETIME_SUB","CHAR_OCTET_LENGTH",
"ORDINAL_POSITION", "IS_NULLABLE", "SCOPE_CATALOG", "SCOPE_SCHEMA",
"SCOPE_TABLE", "SOURCE_DATA_TYPE", "IS_AUTOINCREMENT", "IS_GENERATED"};
"SCOPE_TABLE", "SOURCE_DATA_TYPE", "IS_AUTOINCREMENT", "IS_GENERATEDCOLUMN"};

DatabaseMetaData dbmd = con.getMetaData();
assertNotNull(dbmd);

0 comments on commit 17c4bcf

Please sign in to comment.
You can’t perform that action at this time.