1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-12 23:22:53 +03:00

Simplification of the error reporting logic.

FossilOrigin-Name: 59eb9d29e796886db17a578b64e75fd2797aebf969cbeeda70ecf2fda378c98f
This commit is contained in:
drh
2024-01-22 20:49:47 +00:00
parent a67d63b481
commit 727b35cbfc
3 changed files with 9 additions and 12 deletions

View File

@@ -755,9 +755,9 @@ static int lookupName(
}else if( zTab ){
sqlite3ErrorMsg(pParse, "%s: %s.%s", zErr, zTab, zCol);
}else if( cnt==0 && ExprHasProperty(pRight,EP_DblQuoted) ){
sqlite3ErrorMsg(pParse, "no such column: \"%s\" - should this be a"
sqlite3ErrorMsg(pParse, "%s: \"%s\" - should this be a"
" string literal in single-quotes?",
zCol);
zErr, zCol);
}else{
sqlite3ErrorMsg(pParse, "%s: %s", zErr, zCol);
}