Editor - Update record when DB field has space in the name

Editor - Update record when DB field has space in the name

ddimitrovddimitrov Posts: 2Questions: 1Answers: 0
edited December 2015 in Editor

I am using editor version 1.5.3 and a MySQL table with space in the column name.
The Backticks ( ` ) allow me to read the table.

Update a field with space in the name throw following error.
error: "SQLSTATE[HY093]: Invalid parameter number: number of bound variables does not match number of tokens"

Is there any workaround of the issue ?

Answers

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    Hi,

    Unfortunately there is no workaround for this at the moment. The issue comes from the database abstraction libraries that Editor is using, where the space means that the parameter is not fully escaped. The only fix at the moment is to use columns names that don't include a space - sorry.

    Allan

  • ddimitrovddimitrov Posts: 2Questions: 1Answers: 0

    Thanks !

    I did figure it out.

This discussion has been closed.