Skip to content

BUG. PHQL error while only inserting to table with 2 columns #2019

Closed
@etilley

Description

@etilley

I have a table in my database that has 2 columns in it. First column is the id and the second one is the name. if i try to run

$this->modelsManager->executeQuery('INSERT INTO ModelName (column_name) VALUES (\'test\')');

I will get "Unknown expression" but if I do

$this->modelsManager->executeQuery('INSERT INTO ModelName (id, column_name) VALUES ( \'\'  \'test\')');

it will add the row. I added an extra column to the table for test and it would add the row without me specifying the id column.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions