Download & Extend

Types is a reserved keyword as of MySQL 4.1.x

Project:Drupal core
Version:x.y.z
Component:Base system
Category:bug report
Priority:normal
Assigned:marco
Status:closed (fixed)

Issue Summary

"types" is a reserved keyword as of MySQL 4.x.x. See http://drupal.org/node/view/1612.

Comments

#1

Priority:critical» normal
Assigned to:Anonymous» marco

This is a problem in MySQL 4.1.x only, which is alpha at the moment, while it doesn't seem to be a problem in MySQL 4.0.x, currently in production.
This can be fixed changing the field name as suggested by Ax, or using double quotes.

I lower the priority and wait for some feedback on the best way to fix (renaming or double quotes)

#2

I assume that using double quotes is a MySQL-ism and not ANSI SQL?

#3

Double quotes is ANSI, but works in MySQL only in ANSI Mode. In standard mode you must use backticks, which is not ANSI.
So it seems table renaming is the only portable solution.

#4

fixed with a table rename. now in CVS. thanks marco

#5

#6

it has not been committed yet, I re-open

#7

Title:"Types" is a reserved keyword as of MySQL 4.x.x» Types is a reserved keyword as of MySQL 4.1.x

I think this has been fixed:
al@drupal:~/drupal/drupal> grep types database/database.mysql
Can someone please confirm and CLOSE this?

#8

Confirmed, did not find "types" in sql-statement in core.