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

Bug #17849 Assigning an empty string to the default value
Submitted: 2010-09-07 14:52 UTC
From: anterx Assigned:
Status: Open Package: MDB2_Schema (version 0.8.5)
PHP Version: 5.2.8 OS: independed
Roadmaps: (Not assigned)    
Subscription  


 [2010-09-07 14:52 UTC] anterx (Andrey Terecshenko)
Description: ------------ The file MDB2/Driver/Reverse/mysqli.php contains this check <code> 170 if (is_null($default) && $notnull) { 171 $default = ''; 172 } </code> if type of filed is "date", for this field raises error: <code> 888 return $this->raiseError(MDB2_SCHEMA_ERROR_VALIDATE, 889 '"'.$field_value.'" is not of type "'.$field_def['type'].'"'); </code> what is wrong

Comments