• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Metadata

#1
The method field_data in mysqli_driver on line 436 :
sscanf($query[$i]->Type, '%[a-z](%d)',
                $retval[$i]->type,
                $retval[$i]->max_length
            );

return the type of decimal fields like int
it is decimal (7,2)
it return $field->type is decimal 7

and mysqli comand SHOW COLUMNS FROM 'table' return type corectly

and for enum and set is the same
Reply

#2
uuhh...... ok ??
Reply

#3
If you need 7 to be 7.00:


PHP Code:
number_format7); 
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.