Skip to content

Commit

Permalink
Fix string type for PostgreSQL.
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuggins committed Jun 6, 2012
1 parent 9b34373 commit 9737378
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/driver/pg.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ var PgDriver = Base.extend({
}, },
mapDataType: function(str) { mapDataType: function(str) {
switch(str) { switch(str) {
case type.STRING:
return 'VARCHAR';
case type.DATE_TIME: case type.DATE_TIME:
return 'TIMESTAMP'; return 'TIMESTAMP';
case type.BLOG: case type.BLOG:
Expand Down

0 comments on commit 9737378

Please sign in to comment.