mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Allow typeless columns in STRICT tables that are able to accept any
data type. FossilOrigin-Name: 1e2dcc2d4ee88c0aed40d1472b1c7d43fd43822891729ad6a2c55d5b912e7ad7
This commit is contained in:
@@ -2950,8 +2950,7 @@ case OP_TypeCheck: {
|
||||
if( (pIn1->flags & MEM_Str)==0 ) goto vdbe_type_error;
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
assert( aCol[i].eCType==COLTYPE_REAL );
|
||||
case COLTYPE_REAL: {
|
||||
if( pIn1->flags & MEM_Int ){
|
||||
/* When applying REAL affinity, if the result is still an MEM_Int
|
||||
** that will fit in 6 bytes, then change the type to MEM_IntReal
|
||||
@@ -2974,6 +2973,10 @@ case OP_TypeCheck: {
|
||||
}
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
/* anything goes */
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
REGISTER_TRACE((int)(pIn1-aMem), pIn1);
|
||||
|
Reference in New Issue
Block a user