mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-31 13:32:10 +01:00
19 lines
647 B
Diff
19 lines
647 B
Diff
diff --git a/sqlite3.c b/sqlite3.c
|
|
index 8fd740b..c67f4fe 100644
|
|
--- a/sqlite3.c
|
|
+++ b/sqlite3.c
|
|
@@ -101055,7 +101055,12 @@ expr_code_doover:
|
|
** constant.
|
|
*/
|
|
int iReg = sqlite3ExprCodeTarget(pParse, pExpr->pLeft,target);
|
|
- int aff = sqlite3TableColumnAffinity(pExpr->y.pTab, pExpr->iColumn);
|
|
+ int aff;
|
|
+ if( pExpr->y.pTab ){
|
|
+ aff = sqlite3TableColumnAffinity(pExpr->y.pTab, pExpr->iColumn);
|
|
+ }else{
|
|
+ aff = pExpr->affExpr;
|
|
+ }
|
|
if( aff>SQLITE_AFF_BLOB ){
|
|
static const char zAff[] = "B\000C\000D\000E";
|
|
assert( SQLITE_AFF_BLOB=='A' );
|