Update integration tests to use the new retrieval methods to access Record values.

This commit is contained in:
Tiago Ribeiro
2025-02-10 00:22:25 -07:00
parent c071e47b03
commit d00b44d7cd
5 changed files with 23 additions and 23 deletions

View File

@@ -30,7 +30,7 @@ fn test_last_insert_rowid_basic() -> anyhow::Result<()> {
match rows.step()? {
StepResult::Row => {
let row = rows.row().unwrap();
if let Value::Integer(id) = row.values[0].to_value() {
if let Value::Integer(id) = row.get_value(0).to_value() {
assert_eq!(id, 1, "First insert should have rowid 1");
}
}
@@ -66,7 +66,7 @@ fn test_last_insert_rowid_basic() -> anyhow::Result<()> {
match rows.step()? {
StepResult::Row => {
let row = rows.row().unwrap();
if let Value::Integer(id) = row.values[0].to_value() {
if let Value::Integer(id) = row.get_value(0).to_value() {
last_id = id;
}
}
@@ -112,7 +112,7 @@ fn test_integer_primary_key() -> anyhow::Result<()> {
match select_query.step()? {
StepResult::Row => {
let row = select_query.row().unwrap();
if let Value::Integer(id) = row.values[0].to_value() {
if let Value::Integer(id) = row.get_value(0).to_value() {
rowids.push(id);
}
}