Skip to content

MySql Strict error #651

@tgely

Description

@tgely

$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 ""

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions