You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("To avoid confusion, a sequence of items must be provided as a Python tuple, not as a Python list. Lists are mapped to single array items, while tuples are mapped to sequences of items. If you want to interpret the list as a sequence of items (one item for each list member), then you need to change this list to a tuple by wrapping it into a tuple() call. If you want to bind the variable to one array item, then you need to wrap the provided list inside a singleton tuple and try again, or you can also call bindOne() instead.")
187
+
raiseValueError("""
188
+
To avoid confusion, a sequence of items must be provided as a Python tuple, not as a Python list.
189
+
Lists are mapped to single array items, while tuples are mapped to sequences of items.
190
+
191
+
If you want to interpret the list as a sequence of items (one item for each list member), then you need to convert it to a tuple.
192
+
Example: [1,2,3] should then be rewritten as tuple([1,2,3]) for the sequence of three (integer) items 1, 2, and 3.
193
+
194
+
If you want to interpret the list as a sequence of one array item, then you need to create a singleton tuple.
195
+
Example: [1,2,3] should then be rewritten as ([1,2,3],) for the sequence of one (array) item [1,2,3].
0 commit comments