Re: minor bug in in odbc_statistics()

From: Date: Thu, 13 Jul 2000 07:55:01 +0000
Subject: Re: minor bug in in odbc_statistics()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-24407@lists.php.net to get a copy of this message
waldschrott wrote: > > Hi Andreas, > I´ve noticed that odbc_statistics return one line plus. > It´s of type 0 and contains nothing but table_schema and table_name. > It´s no key at all. Setting accuracy didn´t change anything. > Could be a) a driver specific bug b) I don't claim to understand the last parameter, but to cite from the ODBC API docs: "Indicates the importance of the CARDINALITY and PAGES columns in the result set. The following options affect the return of the CARDINALITY and PAGES columns only; index information is returned even if CARDINALITY and PAGES are not returned. SQL_ENSURE requests that the driver unconditionally retrieve the statistics. (Drivers that conform only to the X/Open standard and do not support ODBC extensions will not be able to support SQL_ENSURE.) SQL_QUICK requests that the driver retrieve the CARDINALITY and PAGES only if they are readily available from the server. In this case, the driver does not ensure that the values are current. (Applications that are written to the X/Open standard will always get SQL_QUICK behavior from ODBC 3.x-compliant drivers.)" And further down: "If the row in the result set corresponds to a table, the driver sets TYPE to SQL_TABLE_STAT and sets NON_UNIQUE, INDEX_QUALIFIER, INDEX_NAME, ORDINAL_POSITION, COLUMN_NAME, and ASC_OR_DESC to NULL." This seems to fit your last row. -Andreas -- Andreas Karajannis GMD National Research Center for Information Technology Schloss Birlinghoven, D-53754 Sankt Augustin Phone +49 2241 142948

« previous php.dev (#24407) next »