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
The documentation for the COPY protocol seems to suggest that encoding into NULL is possible:
Each tuple begins with a 16-bit integer count of the number of fields in the tuple. (Presently, all tuples in a table will have the same count, but that might not always be true.) Then, repeated for each field in the tuple, there is a 32-bit length word followed by that many bytes of field data. (The length word does not include itself, and can be zero.) As a special case, -1 indicates a NULL field value. No value bytes follow in the NULL case.
I am having this issue with a value - nan of type: float are you sure it's closed out? the only way i was able to use copy records to table was to convert the entire column to a string.
uvloop?: Yes
I have no clue if this is a limitation of the
COPY
protocol, if so sorry for the issue.My problem comes from attempting to insert elements using
None
to denoteNULL
. For example, given the following table:Attempts to create a connection and insert
NULL
entity_id entries results in aTypeError
:Would result in:
The documentation for the
COPY
protocol seems to suggest that encoding intoNULL
is possible:Emphasis mine, from the documentation.
However I don't know if I'm misreading it.
Thanks for your time.
The text was updated successfully, but these errors were encountered: