Skip to content

Commit

Permalink
fix query execution with limit option
Browse files Browse the repository at this point in the history
  • Loading branch information
Sune357 committed Jun 30, 2017
1 parent 2cc8e1d commit 45410dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cassandra-fdw/cassandra_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def build_select_stmt(self, quals, columns, allow_filtering, verbose=False):
binding_values.append(types_mapper.map_object_to_type(qual.value, self.columnsTypes[qual.field_name]))

if (self.limit):
stmt_str.write(u" LIMIT ".format(limit))
stmt_str.write(u" LIMIT {0}".format(self.limit))
if allow_filtering:
stmt_str.write(u" ALLOW FILTERING ")
statement = stmt_str.getvalue()
Expand Down

0 comments on commit 45410dd

Please sign in to comment.