Closed aidenko closed 6 years ago
In the version 1.0.2 this worked
_$db->insert('table', array('#createdat' => NOW()))
in the version 1.1.1 this does not work, because a query is
_INSERT INTO table (#createdat) VALUES(NOW())
Was there any update in the latest version for using mysql functions?
Thanks, Artem
Yes NOW is not working for INSERT in new version
Same problem with 'UPDATE'.
UPDATE "account" SET user_name = 'bar', #uid = UUID() WHERE id = 999
Check out the new feature raw object https://medoo.in/api/raw.
In the version 1.0.2 this worked
_$db->insert('table', array('#createdat' => NOW()))
in the version 1.1.1 this does not work, because a query is
_INSERT INTO table (#createdat) VALUES(NOW())
Was there any update in the latest version for using mysql functions?
Thanks, Artem