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
just a random thought.
Since bpchar i.e. char(n) is fixed length, it is probably going to be short.
And then we could use https://github.com/xiaodaigh/ShortStrings.jl/
Though that doesn't yet have strip implemented on it, would be easy to do and would run fast though.
The text was updated successfully, but these errors were encountered:
It's probably going to be short, but what if it isn't?
We can use libpq_c.PQfmod to get the max length of a bpchar column (plus 4 because reasons), and only use ShortStrings when appropriate, but that requires adding some more complicated code or a special case to this code.
We should also rework the parsing code to make it easier to parse bpchar as any string type, not just String (just doing this would let people specify they want ShortStrings for each bpchar column without making it the default or introducing a dependency).
just a random thought.
Since bpchar i.e.
char(n)
is fixed length, it is probably going to be short.And then we could use https://github.com/xiaodaigh/ShortStrings.jl/
Though that doesn't yet have
strip
implemented on it, would be easy to do and would run fast though.The text was updated successfully, but these errors were encountered: