Skip to content

Commit 3ab95f0

Browse files
committed
Add OrderedMapSerializedKey to cql encoder mapping
This is to correctly encode values that are originally returned from a query.
1 parent a048221 commit 3ab95f0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cassandra/encoder.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
from uuid import UUID
2929
import six
3030

31-
from cassandra.util import OrderedDict, OrderedMap, sortedset, Time
31+
from cassandra.util import (OrderedDict, OrderedMap, OrderedMapSerializedKey,
32+
sortedset, Time)
3233

3334
if six.PY3:
3435
long = int
@@ -79,6 +80,7 @@ def __init__(self):
7980
dict: self.cql_encode_map_collection,
8081
OrderedDict: self.cql_encode_map_collection,
8182
OrderedMap: self.cql_encode_map_collection,
83+
OrderedMapSerializedKey: self.cql_encode_map_collection,
8284
list: self.cql_encode_list_collection,
8385
tuple: self.cql_encode_list_collection,
8486
set: self.cql_encode_set_collection,

0 commit comments

Comments
 (0)