phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4159 - phpcompta/branches/rel560/dev/manage-code/create


From: phpcompta-dev
Subject: [Phpcompta-dev] r4159 - phpcompta/branches/rel560/dev/manage-code/create-file
Date: Mon, 6 Jun 2011 23:30:10 +0200 (CEST)

Author: danydb
Date: 2011-06-06 23:30:08 +0200 (Mon, 06 Jun 2011)
New Revision: 4159

Modified:
   phpcompta/branches/rel560/dev/manage-code/create-file/create_phpclass.py
Log:
bug fixed : settype transform SQL NULL into 0


Modified: 
phpcompta/branches/rel560/dev/manage-code/create-file/create_phpclass.py
===================================================================
--- phpcompta/branches/rel560/dev/manage-code/create-file/create_phpclass.py    
2011-06-06 19:30:08 UTC (rev 4158)
+++ phpcompta/branches/rel560/dev/manage-code/create-file/create_phpclass.py    
2011-06-06 21:30:08 UTC (rev 4159)
@@ -544,7 +544,7 @@
                col_id=col_id.strip()
                col_type=col_type.strip()
                if col_type in ('float','integer','numeric','bigint') :
-                   verify_data_type+="if ( settype($this->"+col_id+",'float') 
== false )\n \
+                   verify_data_type+="if ( $this->"+col_id+"!== null && 
settype($this->"+col_id+",'float') == false )\n \
             throw new Exception('DATATYPE "+col_id+" $this->"+col_id+" non 
numerique');\n"
                    if col_type in ('date',' timestamp without time 
zone','timestamp with time zone'):
                        verify_data_type+=" if (isDate($this->"+col_id+") == 
null )\n \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]