The previous version of getTables() was in error. Please use this
version instead:

   public synchronized ResultSet getTables(String c, String s,
           String t, String[] types) throws SQLException {
       checkOpen();

       // TODO: perhaps return "GLOBAL TEMPORARY" for temp tables
       String sql = "select"
           + " null as TABLE_CAT,"
           + " null as TABLE_SCHEM,"
           + " upper(name) as TABLE_NAME,"
           + " upper(type) as TABLE_TYPE,"
           + " null as REMARKS,"
           + " null as TYPE_CAT,"
           + " null as TYPE_SCHEM,"
           + " null as TYPE_NAME,"
           + " null as SELF_REFERENCING_COL_NAME,"
           + " null as REF_GENERATION"
           + " from (select name, type from sqlite_master union all"
           + "       select name, type from sqlite_temp_master)"
           + " where TABLE_NAME like '"
           + (t == null || "".equals(t) ?
              "%" : escape(t.toUpperCase()))
           + "' and TABLE_TYPE in ("
           + join(types).toUpperCase() + ");";

       Statement stat = conn.createStatement();
       return stat.executeQuery(sql);
   }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLiteJDBC" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups-beta.google.com/group/sqlitejdbc?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to