ID: 37020 Updated by: [EMAIL PROTECTED] Reported By: nskoric at gmail dot com -Status: Open +Status: Wont fix Bug Type: Feature/Change Request Operating System: any PHP Version: 5.1.2 New Comment:
Not supported by MySQL's client api. Use Information_schema (MySQL 5.0 or newer) to retrieve constraint information. Previous Comments: ------------------------------------------------------------------------ [2006-04-08 16:20:43] nskoric at gmail dot com Description: ------------ MySQL manual (http://dev.mysql.com/doc/refman/5.0/en/create-table.html) states that MySQL does have (limited) support for foreign keys. PHP function mysql_fetch_field (http://www.php.net/manual/en/function.mysql-fetch-field.php) makes it possible to check whether the field is primary_key, unique_key or multiple_key, but we can't check if the field is foreign_key. And, that feature would be most useful... ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=37020&edit=1