Update of /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv20749/fw/src/net/sourceforge/squirrel_sql/fw/sql
Modified Files:
SQLDatabaseMetaData.java
Log Message:
work-around for Netezza bug (it does support catalogs in data manipulation).
Index: SQLDatabaseMetaData.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/fw/src/net/sourceforge/squirrel_sql/fw/sql/SQLDatabaseMetaData.java,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** SQLDatabaseMetaData.java 28 Dec 2009 15:51:08 -0000 1.62
--- SQLDatabaseMetaData.java 28 Dec 2009 23:34:06 -0000 1.63
***************
*** 444,449 ****
}
! /* Not cached.
! * (non-Javadoc)
* @see net.sourceforge.squirrel_sql.fw.sql.ISQLDatabaseMetaData#getCatalogs()
*/
--- 444,451 ----
}
! /**
! * Not cached because we want to allow the user to pickup changes to this list (e.g. refreshing the object
! * tree) without requiring them to delete the cache.
! *
* @see net.sourceforge.squirrel_sql.fw.sql.ISQLDatabaseMetaData#getCatalogs()
*/
***************
*** 615,618 ****
--- 617,625 ----
throw ex;
}
+
+ // Netezza bug; It supports both catalogs and schemas in SQL statements, yet returns false.
+ if (DialectFactory.isNetezza(this)) {
+ value = true;
+ }
_cache.put(key, value);
|