You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When use_bit=true, it fails. When use_bit=false, I replace BIT(1) by TINYINT(1) then it works, but it is not casted as a boolean anymore.
Furthermore, lastInsertId() returns a string instead of an integer.
Configuration
Phalcon 3.0.2
Zephir 0.9.4a-dev-cbfe80715d
PHP 7.0.10-1~dotdeb+8.1 (cli) ( NTS )
MariaDB 10.1.16
The text was updated successfully, but these errors were encountered:
Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues
We can't use BIT(1) column in a model (boolean) when
PDO::ATTR_EMULATE_PREPARES=false
is set for the db connection. Insert and update fail.This script phalcon_orm_datatype_bug.php has been written to test this issue, when used with this options :
When
use_bit=true
, it fails. Whenuse_bit=false
, I replace BIT(1) by TINYINT(1) then it works, but it is not casted as a boolean anymore.Furthermore, lastInsertId() returns a string instead of an integer.
Configuration
The text was updated successfully, but these errors were encountered: