private SqlTypeMapper(Connection db, TypeInfo typeInfo) throws SQLException { this.typeInfo = typeInfo; this.preloadedSqlTypes = Collect.unmodifiableSet(typeInfo.getPGTypeNamesWithSQLTypes()); this.sqlTypesByPgTypeNames = getSqlTypes(db, typeInfo); }
for (Iterator<String> i = connection.getTypeInfo().getPGTypeNamesWithSQLTypes(); i.hasNext(); ) { String pgType = i.next(); int sqlType = connection.getTypeInfo().getSQLType(pgType);
+ "as remarks, CASE WHEN t.typtype = 'd' then (select CASE"; for (Iterator i = connection.getTypeInfo().getPGTypeNamesWithSQLTypes(); i.hasNext();) { String pgType = (String)i.next(); int sqlType = connection.getTypeInfo().getSQLType(pgType);
private SqlTypeMapper(Connection db, TypeInfo typeInfo) throws SQLException { this.typeInfo = typeInfo; this.preloadedSqlTypes = Collect.unmodifiableSet(typeInfo.getPGTypeNamesWithSQLTypes()); this.sqlTypesByPgTypeNames = getSqlTypes(db, typeInfo); }
+ "as remarks, CASE WHEN t.typtype = 'd' then (select CASE"; for (Iterator i = connection.getTypeInfo().getPGTypeNamesWithSQLTypes(); i.hasNext();) { String pgType = (String)i.next(); int sqlType = connection.getTypeInfo().getSQLType(pgType);
+ "as remarks, CASE WHEN t.typtype = 'd' then (select CASE"; for (Iterator i = connection.getTypeInfo().getPGTypeNamesWithSQLTypes(); i.hasNext();) { String pgType = (String)i.next(); int sqlType = connection.getTypeInfo().getSQLType(pgType);