You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"'UPDATE `t1` SET `id` = 1 FROM `t2` WHERE `t1`.`c` = `t2`.`c`'",
1442
+
"'UPDATE `t1` SET `id` = 1 WHERE rowid IN ( SELECT `t1`.rowid FROM `t1` , `t2` WHERE `t1`.`c` = `t2`.`c` )'",
1443
+
),
1444
+
(
1445
+
"'UPDATE `t1` SET `id` = 1 FROM `t2` WHERE `t1`.`c` = 2 AND `t1`.`c` = `t2`.`c`'",
1446
+
"'UPDATE `t1` SET `id` = 1 WHERE rowid IN ( SELECT `t1`.rowid FROM `t1` JOIN `t2` ON `t1`.`c` = `t2`.`c` WHERE `t1`.`c` = 2 )'",
1447
+
),
1448
+
(
1449
+
"'UPDATE `t1` SET `id` = 1 FROM ( SELECT * FROM `t2` ) AS `t2` WHERE `t1`.`c` = 2 AND `t1`.`c` = `t2`.`c`'",
1450
+
"'UPDATE `t1` SET `id` = 1 WHERE rowid IN ( SELECT `t1`.rowid FROM `t1` JOIN ( SELECT * FROM `t2` ) AS `t2` ON `t1`.`c` = `t2`.`c` WHERE `t1`.`c` = 2 )'",
1451
+
),
1452
+
]:
1453
+
if old_q in src_tt:
1454
+
src_tt = src_tt.replace(old_q, new_q, 1)
1455
+
open(path_tt, 'w').write(src_tt)
1456
+
print('patched Translation_Tests testUpdate expectations to rowid-IN form')
1457
+
1410
1458
# 14. Update Translation_Tests::testHexadecimalLiterals to match
1411
1459
# the hex-literal alias force patch (which needs to stay so
1412
1460
# Turso doesn't mangle x'417a' into 17a' at runtime).
0 commit comments