Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2012-11-05 16:06:47 +0000
committerEike Stepper2012-11-05 16:08:09 +0000
commit6640fdff6f3acb45be63ce5749d23a76c42079a7 (patch)
treee387e084277627e15b562ca09197dcade1add944 /plugins/org.eclipse.net4j.db.mysql
parent0a7004d5082934bcbb55df64c877ae5ce68b35b8 (diff)
downloadcdo-6640fdff6f3acb45be63ce5749d23a76c42079a7.tar.gz
cdo-6640fdff6f3acb45be63ce5749d23a76c42079a7.tar.xz
cdo-6640fdff6f3acb45be63ce5749d23a76c42079a7.zip
[344232] [DB] CDODBSchema uses "size" as an column name which is a
keyword https://bugs.eclipse.org/bugs/show_bug.cgi?id=344232
Diffstat (limited to 'plugins/org.eclipse.net4j.db.mysql')
-rw-r--r--plugins/org.eclipse.net4j.db.mysql/src/org/eclipse/net4j/db/mysql/MYSQLAdapter.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.db.mysql/src/org/eclipse/net4j/db/mysql/MYSQLAdapter.java b/plugins/org.eclipse.net4j.db.mysql/src/org/eclipse/net4j/db/mysql/MYSQLAdapter.java
index 2c5f603b43..b96818b5b6 100644
--- a/plugins/org.eclipse.net4j.db.mysql/src/org/eclipse/net4j/db/mysql/MYSQLAdapter.java
+++ b/plugins/org.eclipse.net4j.db.mysql/src/org/eclipse/net4j/db/mysql/MYSQLAdapter.java
@@ -160,4 +160,11 @@ public class MYSQLAdapter extends DBAdapter
{
return "23000".equals(ex.getSQLState());
}
+
+ @Override
+ public String sqlRenameField(IDBField field, String oldName)
+ {
+ return "ALTER TABLE " + field.getTable() + " CHANGE COLUMN " + oldName + " TO " + field + " "
+ + createFieldDefinition(field);
+ }
}

Back to the top