PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » MDB2_Driver_oci8 » Bug #10215

listtableconstraints dont list check constraints

Details

Request #10215listtableconstraints dont list check constraints
Submitted2007-02-28 10:34 UTC
Fromalbatista at gmail dot com
Assignedquipo
StatusClosed
PackageMDB2_Driver_oci8
PHP Version5.1.4
OSDebian
Roadmaps(Not assigned)

Comments

[2007-02-28 10:34 UTC] albatista at gmail dot com

Description:
------------
The function listTableConstraints gets a list of the constraints of a table getting the entries in USER_CONSTRAINT oracle table with the SQL
'SELECT index_name name FROM user_constraints
WHERE table_name='foo' OR table_name='FOO'
buts some constraints (check constraint) have the index_name field empty so the function don't get them.
I wonder if its better to get the field constraint_name instead of index_name in the query, resulting the query
'SELECT constraint_name name FROM user_constraints
WHERE table_name='foo' OR table_name='FOO'.
I'm programming with php Oracle 10 XE and Oracle Zend Core 2.1.0 (php 5.1.4)