Permalink
Browse files

Fixed renaming tables for PG

  • Loading branch information...
1 parent a61f511 commit 8a4f818ce5b5d1eec578c8fdc92d6c42c238f087 Roman Ostolosh committed Jun 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/driver/pg.js
View
2 lib/driver/pg.js
@@ -74,7 +74,7 @@ var PgDriver = Base.extend({
},
renameTable: function(tableName, newTableName, callback) {
- var sql = util.format('RENAME TABLE %s TO %s', tableName, newTableName);
+ var sql = util.format('ALTER TABLE %s RENAME TABLE TO %s', tableName, newTableName);
this.runSql(sql, callback);
},

0 comments on commit 8a4f818

Please sign in to comment.