mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-18 17:14:20 +01:00
fix test
This commit is contained in:
@@ -16,10 +16,16 @@ fn test_schema_reprepare() {
|
|||||||
let mut stmt = conn2.prepare("SELECT y, z FROM t").unwrap();
|
let mut stmt = conn2.prepare("SELECT y, z FROM t").unwrap();
|
||||||
let mut stmt2 = conn2.prepare("SELECT x, z FROM t").unwrap();
|
let mut stmt2 = conn2.prepare("SELECT x, z FROM t").unwrap();
|
||||||
conn1.execute("ALTER TABLE t DROP COLUMN x").unwrap();
|
conn1.execute("ALTER TABLE t DROP COLUMN x").unwrap();
|
||||||
assert_eq!(
|
loop {
|
||||||
stmt2.step().unwrap_err().to_string(),
|
match stmt2.step() {
|
||||||
"Parse error: no such column: x"
|
Ok(StepResult::IO) => tmp_db.io.step().unwrap(),
|
||||||
);
|
Err(err) => {
|
||||||
|
assert_eq!(err.to_string(), "Parse error: no such column: x");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
r => panic!("unexpected response: {:?}", r),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let mut rows = Vec::new();
|
let mut rows = Vec::new();
|
||||||
loop {
|
loop {
|
||||||
|
|||||||
Reference in New Issue
Block a user