Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Notice in Make.mysql.php #13

Open
GoogleCodeExporter opened this issue Oct 13, 2015 · 3 comments
Open

PHP Notice in Make.mysql.php #13

GoogleCodeExporter opened this issue Oct 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 14 Sep 2011 at 4:03

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 2 Oct 2011 at 11:28

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 5 Oct 2011 at 8:39

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant