Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.3

Bug #3691 mssql: tableInfo - no propertys for flags
Submitted: 2005-03-03 17:08 UTC
From: mail at fzietlow dot de Assigned: danielc
Status: Closed Package: DB
PHP Version: 4.3.9 OS: Linux (Apache 2.0.48)
Roadmaps: (Not assigned)    
Subscription  


 [2005-03-03 17:08 UTC] mail at fzietlow dot de
Description: ------------ i like to get some informations of fields from some tables on a mssql database. the most ist quite good but te info of the flag field isn't correct. the function _mssql_field_flags become only the table name (both two parameters). the second shoud be the fieldname... and sorry for this englisch... ;) Reproduce code: --------------- for ($i = 0; $i < $count; $i++) { $field_name = $case_func(@mssql_field_name($id, $i)); $res[$i] = array( 'table' => $got_string ? $case_func($result) : '', 'name' => $field_name, 'type' => @mssql_field_type($id, $i), 'len' => @mssql_field_length($id, $i), // We only support flags for table 'flags' => $got_string ? $this->_mssql_field_flags($result, $case_func($field_name)) : '', ); Expected result: ---------------- the right flags of a field. like primary_key, auto_increment... Actual result: -------------- -

Comments

 [2005-03-03 17:13 UTC] mail at fzietlow dot de
The Actual result: ----------------- There are some strange results of the fields. the result is correct if the field name equal table name but this is only one of a table... [:
 [2005-03-03 17:17 UTC] mail at fzietlow dot de
And... Under "Reproduce code:" is the solution - it's a little bug. This must pased on mssql.php line 747.
 [2005-03-07 18:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!