fix: #9 no error on trying to insert more than limit, plus some other

tests and minor fix
This commit is contained in:
TakshakRamteke committed 2026-07-29 00:35:03 +05:30
1 parent 1e297a45ab
commit 9eeac4e7df
3 files changed
+72 -10

No files matched your search

+4
View File
@@ -37,6 +37,10 @@ func Run() {
fmt.Println("Syntax error, could not parse statement")
case PrepareUnrecognised:
fmt.Printf("Unrecognised keyword at the start of '%s'.\n", inputBuffer.Buffer)
case PrepareTooManyArgs:
fmt.Printf("Too many arguments in the insert statement '%v'\n", inputBuffer.Buffer)
case PrepareValueTooLong:
fmt.Printf("Values for either username or email are too long\n")
}
switch statement.ExecuteStatement(table) {