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:
parent
f390478127
commit
0906e3c206
2 changed files with 38 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue