aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <Dan Kennedy>2024-01-22 19:42:56 +0000
committerdan <Dan Kennedy>2024-01-22 19:42:56 +0000
commita545de6827e9839da413f52e800f8184eedc6060 (patch)
tree24346efbe0b62735f8b10879c3fe6b2bf6327c35 /src
parent8374f7dfaf1106f01205e874b8b7e86a14f9d6cf (diff)
downloadsqlite-a545de6827e9839da413f52e800f8184eedc6060.tar.gz
sqlite-a545de6827e9839da413f52e800f8184eedc6060.zip
Fix a problem in the previous commit with hex literals that start with "0X" instead of "0x".
FossilOrigin-Name: c063c89b11487e6e712b97de604db316fa97bcf91ed810bb2dcbbcb54c68dbf4
Diffstat (limited to 'src')
-rw-r--r--src/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index 9a2ea9e90..ed7789591 100644
--- a/src/util.c
+++ b/src/util.c
@@ -328,7 +328,7 @@ void sqlite3DequoteNumber(Expr *p){
if( *pIn=='e' || *pIn=='E' || *pIn=='.' ) p->op = TK_FLOAT;
}
}while( *pIn++ );
- if( p->u.zToken[0]=='0' && p->u.zToken[1]=='x' ){
+ if( p->u.zToken[0]=='0' && (p->u.zToken[1]=='x' || p->u.zToken[1]=='X') ){
p->op = TK_INTEGER;
}
}