mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Fix the OP_Cast operator so that when casting to TEXT, it always leaves
the result in the encoding of the database. Ticket [0911b5d161b039c6]. Test cases in TH3. FossilOrigin-Name: f347744e0d576f0250c29259cca755e57afded8956224114c01603c1bca5b3a4
This commit is contained in:
@@ -1866,9 +1866,10 @@ case OP_Cast: { /* in1 */
|
||||
pIn1 = &aMem[pOp->p1];
|
||||
memAboutToChange(p, pIn1);
|
||||
rc = ExpandBlob(pIn1);
|
||||
sqlite3VdbeMemCast(pIn1, pOp->p2, encoding);
|
||||
UPDATE_MAX_BLOBSIZE(pIn1);
|
||||
if( rc ) goto abort_due_to_error;
|
||||
rc = sqlite3VdbeMemCast(pIn1, pOp->p2, encoding);
|
||||
if( rc ) goto abort_due_to_error;
|
||||
UPDATE_MAX_BLOBSIZE(pIn1);
|
||||
REGISTER_TRACE(pOp->p1, pIn1);
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user