php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #37020 foreign key in mysql_fetch_field
Submitted: 2006-04-08 16:20 UTC Modified: 2006-04-10 05:42 UTC
Votes:2
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: nskoric at gmail dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.1.2 OS: any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2006-04-08 16:20 UTC] 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...


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-10 05:42 UTC] georg@php.net
Not supported by MySQL's client api. Use Information_schema (MySQL 5.0 or newer) to retrieve  constraint information.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 18 15:01:30 2024 UTC