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

MySql Strict error #651

Open
tgely opened this issue Aug 22, 2019 · 0 comments
Open

MySql Strict error #651

tgely opened this issue Aug 22, 2019 · 0 comments

Comments

@tgely
Copy link
Contributor

tgely commented Aug 22, 2019

$OSCOM_Db->exec('update :table_products set products_date_available = "" where to_days(now()) > to_days(products_date_available)');

[22-Aug-2019 19:02:16 Europe/Budapest] PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: '' for column 'products_date_available' at row 29' in \catalog\includes\OSC\OM\Db.php:94
Stack trace:
#0 \catalog\includes\OSC\OM\Db.php(94): PDO->exec('update osc_prod...')
#1 \catalog\admin\products_expected.php(21): OSC\OM\Db->exec('update :table_p...')
#2 {main}
thrown in \catalog\includes\OSC\OM\Db.php on line 94

"Null" would be better than ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant