Jump to content

[Resolved] The column name 'condition' is a MySQL reserved keyword.


Dirty Butter

Recommended Posts

In the file /classes/db/database.class.php, it is the responsibility of this code to identify column names and use backticks appropriately. You will see them being applied in function count(), delete(), getFullTextIndex(), and others.

Backticks are also used to enclose names of tables.

Of note, there are two functions where it is the responsibility of the programmer to properly construct the query, as these functions execute the query straightaway: misc(), and query().

So, phpMyAdmin may take your query, run it through a parser, and make sure column names are safened. There is no way I would actually know for sure, other than making this assumption due to the popularity of this application.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...