aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2024-01-22 20:49:47 +0000
committerdrh <>2024-01-22 20:49:47 +0000
commit727b35cbfcdaa1009e00f525c9e37bee584e4890 (patch)
tree07d00ec9fd0fd8e77297bc8cc59939b1679059f7 /src
parenta67d63b4816979b5bd8c123d0d2e332047502e06 (diff)
downloadsqlite-727b35cbfcdaa1009e00f525c9e37bee584e4890.tar.gz
sqlite-727b35cbfcdaa1009e00f525c9e37bee584e4890.zip
Simplification of the error reporting logic.
FossilOrigin-Name: 59eb9d29e796886db17a578b64e75fd2797aebf969cbeeda70ecf2fda378c98f
Diffstat (limited to 'src')
-rw-r--r--src/resolve.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resolve.c b/src/resolve.c
index fde5506f9..29975f385 100644
--- a/src/resolve.c
+++ b/src/resolve.c
@@ -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);
}