elliotchance / vsql

✌️ Single-file or PostgreSQL-server compatible transactional SQL database written in pure V.
https://vsql.readthedocs.io
MIT License
299 stars 20 forks source link

Fixes for types and explicit casting #156

Closed elliotchance closed 1 year ago

elliotchance commented 1 year ago

Up until now, explicit casting (using the CAST function) has worked by setting up a map of known conversions and their respective functions. However, subclause 9.2, "Store assignment", in ISO/IEC 9075-2 outlines a very detailed set of steps when converting from one type to another.