aboutsummaryrefslogtreecommitdiff
path: root/src/expr.c
diff options
context:
space:
mode:
authordrh <>2022-07-26 14:37:04 +0000
committerdrh <>2022-07-26 14:37:04 +0000
commitf4c291275b6cb345afad5feb4f8ecb88ab356e4c (patch)
treea41003ef38c720bd6e53afb9f7ea8a03c69fa1ee /src/expr.c
parente6710e83fcec5678f059aec7dcd2e20aacfacbdd (diff)
downloadsqlite-f4c291275b6cb345afad5feb4f8ecb88ab356e4c.tar.gz
sqlite-f4c291275b6cb345afad5feb4f8ecb88ab356e4c.zip
Improved AggInfo.aCol debugging output, intended to debug a problem with
LEFT JOIN flattening into an aggregate query with GROUP BY. FossilOrigin-Name: e717e029bde4ee68b6ea77a68721c02ddb6e296f1d310a368137ea3c4164f68c
Diffstat (limited to 'src/expr.c')
-rw-r--r--src/expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c
index 32d655a75..5f2068d26 100644
--- a/src/expr.c
+++ b/src/expr.c
@@ -4088,7 +4088,7 @@ expr_code_doover:
pCol->iSorterColumn, target);
if( pCol->iColumn<0 ){
VdbeComment((v,"%s.rowid",pTab->zName));
- }else{
+ }else if( pTab!=0 ){
VdbeComment((v,"%s.%s",
pTab->zName, pTab->aCol[pCol->iColumn].zCnName));
if( pTab->aCol[pCol->iColumn].affinity==SQLITE_AFF_REAL ){