Browse files

Merge pull request #24 from rdunklau/patch-2

Fix small bug on "create foreign data wrapper" statement.
  • Loading branch information...
2 parents 4891d8e + 3ed7759 commit 16c08cb4717be742b916e8e11ee248ee34367408 @jmafc jmafc committed Mar 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 pyrseas/dbobject/foreign.py
View
2 pyrseas/dbobject/foreign.py
@@ -27,7 +27,7 @@ def create(self):
if hasattr(self, 'options'):
opts = []
for opt in self.options:
- (nm, val) = opt.split('=')
+ (nm, val) = opt.split('=', 1)
opts.append("%s '%s'" % (nm, val))
clauses.append("OPTIONS (%s)" % ', '.join(opts))
stmts = ["CREATE FOREIGN DATA WRAPPER %s%s" % (

0 comments on commit 16c08cb

Please sign in to comment.