Mercurial > hg > monetdb-java
comparison src/main/java/org/monetdb/jdbc/MonetDatabaseMetaData.java @ 761:e1389c0ffb7c
A few more places where we can remove append() calls for static int values in construction of Strings.
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 29 Jun 2023 16:42:06 +0200 (22 months ago) |
parents | 846a456f0f0c |
children | 1547843b3a9b |
comparison
equal
deleted
inserted
replaced
760:f2f7039f93b1 | 761:e1389c0ffb7c |
---|---|
3434 "t.\"sqlname\" AS \"TYPE_NAME\", " + | 3434 "t.\"sqlname\" AS \"TYPE_NAME\", " + |
3435 "CASE t.\"sqlname\"" + | 3435 "CASE t.\"sqlname\"" + |
3436 // next UDT only when "CREATE TYPE xml EXTERNAL NAME xml;" is executed | 3436 // next UDT only when "CREATE TYPE xml EXTERNAL NAME xml;" is executed |
3437 " WHEN 'xml' THEN 'java.lang.String'" + | 3437 " WHEN 'xml' THEN 'java.lang.String'" + |
3438 " ELSE 'java.lang.Object' END AS \"CLASS_NAME\", " + | 3438 " ELSE 'java.lang.Object' END AS \"CLASS_NAME\", " + |
3439 "cast(CASE WHEN t.\"sqlname\" = 'xml' THEN ").append(Types.JAVA_OBJECT) | 3439 "cast(CASE WHEN t.\"sqlname\" = 'xml' THEN " + Types.JAVA_OBJECT + |
3440 .append(" ELSE ").append(Types.STRUCT).append(" END AS int) AS \"DATA_TYPE\", " + | 3440 " ELSE " + Types.STRUCT + " END AS int) AS \"DATA_TYPE\", " + |
3441 "t.\"systemname\" AS \"REMARKS\", " + | 3441 "t.\"systemname\" AS \"REMARKS\", " + |
3442 "cast(null as smallint) AS \"BASE_TYPE\" " + | 3442 "cast(null as smallint) AS \"BASE_TYPE\" " + |
3443 "FROM \"sys\".\"types\" t " + | 3443 "FROM \"sys\".\"types\" t " + |
3444 "JOIN \"sys\".\"schemas\" s ON t.\"schema_id\" = s.\"id\" " + | 3444 "JOIN \"sys\".\"schemas\" s ON t.\"schema_id\" = s.\"id\" " + |
3445 // exclude the built-in types (I assume they always have id <= 99 and eclass < 18) | 3445 // exclude the built-in types (I assume they always have id <= 99 and eclass < 18) |