Driver.debug("Serialize: initializing instance for type: "+type);
tableName=toPostgreSQL(type);
tableName=toPostgreSQL(conn,type);
className=type;
ourClass=Class.forName(className);
}
...
...
@@ -144,7 +144,14 @@ public class Serialize
// Second check, the type must be a table
booleanstatus=false;
ResultSetrs=((org.postgresql.jdbc1.AbstractJdbc1Connection)conn).ExecSQL("select typname from pg_type,pg_class where typname=relname and typname='"+tableName+"'");
sql="SELECT 1 FROM pg_catalog.pg_type t, pg_catalog.pg_class c WHERE t.typrelid=c.oid AND c.relkind='r' AND t.typname='"+tableName+"' AND pg_table_is_visible(c.oid) ";
}else{
sql="SELECT 1 FROM pg_type t, pg_class c WHERE t.typrelid=c.oid AND c.relkind='r' AND t.typname='"+tableName+"'";