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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: nskoric at gmail dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Fri Sep 27 22:01:26 2024 UTC