diff --git a/cassandra/decoder.py b/cassandra/decoder.py index 1b05c101..ce6fafde 100644 --- a/cassandra/decoder.py +++ b/cassandra/decoder.py @@ -787,7 +787,7 @@ def read_binary_longstring(f): def read_longstring(f): - return read_binary_longstring().decode('utf8') + return read_binary_longstring(f).decode('utf8') def write_longstring(f, s): diff --git a/tests/unit/test_types.py b/tests/unit/test_types.py index 25e73ac7..43c16181 100644 --- a/tests/unit/test_types.py +++ b/tests/unit/test_types.py @@ -27,7 +27,8 @@ from cassandra.cqltypes import (BooleanType, lookup_casstype_simple, lookup_cass EmptyValue, _CassandraType, DateType) from cassandra.query import named_tuple_factory from cassandra.decoder import (write_string, read_longstring, write_stringmap, read_stringmap, read_inet, - write_inet, cql_quote, read_string, write_longstring) + write_inet, read_string, write_longstring) +from cassandra.encoder import cql_quote class TypeTests(unittest.TestCase):