From 2fa91cbfda1f4af9d5f89dd833c98531bcc5b255 Mon Sep 17 00:00:00 2001 From: "D. Richard Hipp" Date: Tue, 3 Oct 2017 19:53:12 +0000 Subject: [PATCH] Simplify the computation of types on columns of a view. --- src/select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/select.c b/src/select.c index f628e56f64..63078a9a2b 100644 --- a/src/select.c +++ b/src/select.c @@ -1800,7 +1800,8 @@ void sqlite3SelectAddColumnTypeAndCollation( zType = columnType(&sNC, p, 0, 0, 0); /* pCol->szEst = ... // Column size est for SELECT tables never used */ pCol->affinity = sqlite3ExprAffinity(p); - if( zType && (m = sqlite3Strlen30(zType))>0 ){ + if( zType ){ + m = sqlite3Strlen30(zType); n = sqlite3Strlen30(pCol->zName); pCol->zName = sqlite3DbReallocOrFree(db, pCol->zName, n+m+2); if( pCol->zName ){ -- 2.11.4.GIT