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

_convertTypeToPhp doesn't recognize enum type #22

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

_convertTypeToPhp doesn't recognize enum type #22

GoogleCodeExporter opened this issue Oct 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Create a column with enum type
2. Run ZDMG
3. $res is undefined on /var/www/zdmg/class/Make.mysql.php on line 48

What is the expected output? What do you see instead?
The type itself, not being shown due to lack of verbose

What version of the product are you using? On what operating system?
0.6, Ubuntu Linux

Please provide any additional information below.
This can be fixed by adding enum to the regular expression at line 39, on 
Make.mysql.php so ZDMG will know this is a string type.

//
} elseif(preg_match('/(datetime|timestamp|blob|char|enum)/', $str)) {

Original issue reported on code.google.com by [email protected] on 16 Feb 2012 at 1:29

@GoogleCodeExporter
Copy link
Author

This issue also occurs with FLOAT and DOUBLE types.

Original comment by [email protected] on 16 Feb 2012 at 1:33

@GoogleCodeExporter
Copy link
Author

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

  • 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