Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

Fix column quoting for postgres #16

Merged
merged 1 commit into from
Jul 23, 2011
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions twistar/dbconfig/postgres.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,10 @@ def getLastInsertID(self, txn):

def insertArgsToString(self, vals):
if len(vals) > 0:
return "(" + ",".join(["%s" for _ in vals.items()]) + ")"
return "(" + ",".join(["%s" for _ in vals.items()]) + ")"
return "DEFAULT VALUES"




def escapeColNames(self, colnames):
return map(lambda x: '"%s"' % x, colnames)