nciri / zend-db-model-generator

Automatically exported from code.google.com/p/zend-db-model-generator
0 stars 0 forks source link

PHP Notice in Make.mysql.php #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When I'd run the script, I got the following PHP Notice three times:

PHP Notice:  Undefined variable: res in /…/zdmg-0.6/class/Make.mysql.php on 
line 45

Original issue reported on code.google.com by szots...@gmail.com on 14 Sep 2011 at 4:03

GoogleCodeExporter commented 8 years ago
the function that this notice occurs in converts a mysql variable type to a php 
variable type.

tinyint(1) and bit are converted to boolean.
datetime,timestamp,blob and char are converted to string.
decimal and numeric are converted to float.
tiny,small,medium,long,big,var + (word) is converted appropriately as well.

can you let me know which variable type it tries to convert? or can you provide 
a demo script that I can test ?

any information to pinpoint the issue would be greatly appreciated.

thanks!

Original comment by kfirufk@gmail.com on 2 Oct 2011 at 11:28

GoogleCodeExporter commented 8 years ago
I ran the script to all of my tables one by one and it turned out that the 
'ENUM' type caused the notices. As many ENUMs were in the tables that many 
notices I received.
Maybe you might test the script to SETs, too.

Original comment by szots...@gmail.com on 5 Oct 2011 at 8:39

GoogleCodeExporter commented 8 years ago
Being fixed on issue #22. It has already been added to the pedrospdc branch, 
but it has not been tested yet.

Original comment by pedrospdc on 18 Feb 2012 at 6:13