From 45410dd7f45ae6250b8f11ed417e85b29bf12005 Mon Sep 17 00:00:00 2001 From: Alexander Nabatchikov Date: Fri, 30 Jun 2017 16:26:28 +0300 Subject: [PATCH] fix query execution with limit option --- cassandra-fdw/cassandra_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cassandra-fdw/cassandra_provider.py b/cassandra-fdw/cassandra_provider.py index 449730e..7e1605b 100644 --- a/cassandra-fdw/cassandra_provider.py +++ b/cassandra-fdw/cassandra_provider.py @@ -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()