Skip to content

Reserved words cannot be used as column name #1

Description

@djschilling

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions