| 399 | } // end of GetQuoteString |
| 400 | |
| 401 | public int GetColumns(String[] parms) { |
| 402 | int ncol = -1; |
| 403 | |
| 404 | try { |
| 405 | if (rs != null) rs.close(); |
| 406 | |
| 407 | if (CatisSchema) |
| 408 | rs = dbmd.getColumns(parms[1], null, parms[2], parms[3]); |
| 409 | else |
| 410 | rs = dbmd.getColumns(parms[0], parms[1], parms[2], parms[3]); |
| 411 | |
| 412 | if (rs != null) { |
| 413 | rsmd = rs.getMetaData(); |
| 414 | ncol = rsmd.getColumnCount(); |
| 415 | } // endif rs |
| 416 | |
| 417 | } catch(SQLException se) { |
| 418 | SetErrmsg(se); |
| 419 | } // end try/catch |
| 420 | |
| 421 | return ncol; |
| 422 | } // end of GetColumns |
| 423 | |
| 424 | public int GetTables(String[] parms) { |
| 425 | int ncol = -1; |