Skip to content

Commit

Permalink
Fixed renaming tables for PG
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Ostolosh authored and Roman Ostolosh committed Jun 6, 2012
1 parent a61f511 commit 8a4f818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/driver/pg.js
Expand Up @@ -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);
},

Expand Down

0 comments on commit 8a4f818

Please sign in to comment.