From: Carlos G.A. <car...@ho...> - 2002-08-10 12:31:24
|
Hello: The SQLStatistics cannot be called with a null pointer for the table parameter RETCODE OdbcStatement::sqlStatistics(SQLCHAR * catalog, int catLength, SQLCHAR * schema, int schemaLength, SQLCHAR * table, int tableLength, int unique, int reservedSic) { clearErrors(); releaseStatement(); char temp [1024], *p = temp; const char *cat = getString (&p, catalog, catLength, NULL); const char *scheme = getString (&p, schema, schemaLength, NULL); const char *tbl = getString (&p, table, tableLength, NULL); if ( *tbl ) { try { DatabaseMetaData *metaData = connection->getMetaData(); setResultSet (metaData->getIndexInfo (cat, scheme, tbl, unique == SQL_INDEX_UNIQUE, reservedSic == SQL_QUICK)); } catch (SQLException& exception) { postError ("HY000", exception); return SQL_ERROR; } } else return sqlReturn (SQL_ERROR, "HY009", "Invalid use of null pointer"); return sqlSuccess(); } Best Regards Carlos Guzmán Álvarez _________________________________________________________________ MSN. Más Útil cada Día. http://www.msn.es/intmap/ |