-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
PDO/Adapter: decribeColumns method fixes. #1562
Conversation
lantian
commented
Nov 17, 2013
- added tinyint(1) as boolean for mysql, oracle, postresql, sqlite.
- added timestamp as date for mysql.
- decribeColumns method has been refactored in oracle, postesql, sqlite.
- added constraint creation for foreign key
if (phalcon_memnstr_str(column_type, SL("tinyint(1)"))) { | ||
phalcon_array_update_string_long(&definition, SL("type"), 8, PH_SEPARATE); | ||
phalcon_array_update_string_long(&definition, SL("bindType"), 5, PH_SEPARATE); | ||
ZVAL_STRING(column_type, "boolean", 1); // Change column type to skip size check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Memory leak here
Ok, thanks. But what is wrong? With zval function? I'am not very familiar with C =) |
The issue is that the old string value is not freed — and when you assign I will tell you how to fix this a bit later — need to finish something else first. |
If possible, could you please use tabs instead of spaces for indentation? |
Thanks. Ok, i will use tabs. Tell me please, what IDE you are using? |
Eclipse CDT. |
PDO/Adapter: decribeColumns method fixes.
Thanks, could you please submit this to 1.3.0? |
Sure |