Using the function SPDO::insert reserved words cannot be used as column names.
Example:
SPDO::insert('report', ['rows' => 'Projekt,Hauptkonto'] );
This does not work because rows is a reserved word in new mariadb installations.
SPDO::insert('report', ['`rows`' => 'Projekt,Hauptkonto'] );
This works, cause the column name is in backticks.
A general fix would be to put all column names in backticks.
Using the function
SPDO::insertreserved words cannot be used as column names.Example:
This does not work because
rowsis a reserved word in new mariadb installations.This works, cause the column name is in backticks.
A general fix would be to put all column names in backticks.