only supports ‘table’ if <var>$result</var> is a table name.

If analyzing a query result and the result has duplicate field names, an error will be raised saying <samp>can’t distinguish duplicate field names</samp>.

@param object|string $result DB_result object from a query or a string containing the name of a table.  While this also accepts a query result resource identifier, this behavior is deprecated.  @param int $mode a valid tableInfo mode

@return array an associative array with the information requested.  A DB_Error object on failure.

@see DB_common::tableInfo() @since Method available since Release 1.6.0