Example_incompleteStatement demonstrates incomplete SQL statement
()
| 99 | |
| 100 | // Example_incompleteStatement demonstrates incomplete SQL statement |
| 101 | func Example_incompleteStatement() { |
| 102 | sql := "SELECT * FROM users WHERE" |
| 103 | location := models.Location{Line: 1, Column: 26} |
| 104 | |
| 105 | err := errors.IncompleteStatementError(location, sql) |
| 106 | |
| 107 | fmt.Println("Incomplete Statement Example:") |
| 108 | fmt.Println(err.Error()) |
| 109 | fmt.Println() |
| 110 | } |
| 111 | |
| 112 | // Example_multiLineError demonstrates error in multi-line SQL with proper context |
| 113 | func Example_multiLineError() { |
nothing calls this directly
no test coverage detected