Re: DB::tableInfo() // @oci8.php

From: Date: Thu, 05 Feb 2004 14:42:51 +0000
Subject: Re: DB::tableInfo() // @oci8.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25514@lists.php.net to get a copy of this message
On Thu, Feb 05, 2004 at 02:39:09PM +0100, Markus Tacker wrote: > Quote from the function's docblock: > * NOTE: flags won't contain index information. > > Why that? Isn't it possible to retrieve whether a field is an index? Because the index information was being found from a secondary query lookup that used only the column name. If that column name also existed in any other table, the information that came back could not be guaranteed to be the information for the column/table combination the person is asking the question about. This could be reworked a _little_ bit by allowing improved flag information if the person is looking up information about a table name, rather than a query result. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.dev (#25514) next »