catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.84k stars 1.15k forks source link

NOW() function #429

Closed aidenko closed 6 years ago

aidenko commented 8 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

elbyvilayil commented 8 years ago

Yes NOW is not working for INSERT in new version

leonirlopes commented 8 years ago

Same problem with 'UPDATE'.

UPDATE "account" SET user_name = 'bar', #uid = UUID() WHERE id = 999

catfan commented 6 years ago

Check out the new feature raw object https://medoo.in/api/raw.