1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:58:11 +00:00

LibSQL: Check data types in INSERT statement parsing

Data types are now checked against the table data types. When multiple
rows are inserted at once, we check all rows to be matching W.R.T data
types. Only then we insert the rows.
This commit is contained in:
Mahmoud Mandour 2021-09-17 17:15:55 +02:00 committed by Andreas Kling
parent f390478127
commit 0906e3c206
2 changed files with 38 additions and 14 deletions

View file

@ -54,6 +54,7 @@ constexpr char const* command_tag(SQLCommand command)
S(TableExists, "Table '{}' already exist") \
S(InvalidType, "Invalid type '{}'") \
S(InvalidDatabaseName, "Invalid database name '{}'") \
S(InvalidValueType, "Invalid type for attribute '{}'") \
S(InvalidNumberOfValues, "Number of values does not match number of columns")
enum class SQLErrorCode {