Skip to content

Commit

Permalink
Bugfix with partition operator
Browse files Browse the repository at this point in the history
  • Loading branch information
gabfl committed Oct 5, 2017
1 parent 4c60169 commit f979d13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fdw.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ def buildWhereClause(self, quals):
clause += "WHERE "
for qual in quals:
if qual.field_name == self.partitionPseudoColumn:
clause += "_PARTITIONTIME = ?"
clause += "_PARTITIONTIME " + str(self.getOperator(qual.operator)) + " ?"
parameters.append(self.setParameter(qual.field_name, 'TIMESTAMP', qual.value)) # Force data type to `TIMESTAMP`

# Store the value to return it to PostgreSQL
Expand Down

0 comments on commit f979d13

Please sign in to comment.