Skip to content

Commit d079a8e

Browse files
committed
fix nullable errors for 2.097.0
1 parent b379d57 commit d079a8e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

integration-tests/source/mysql/test/integration.d

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ unittest
630630
auto val2 = 2;
631631
stmt = cn.prepare("SELECT * FROM manytypes WHERE i = ? AND f = ?");
632632
stmt.setArgs(val1, val2);
633-
row = cn.queryRow(stmt);
633+
row = cn.queryRow(stmt).get;
634634
}
635635
assert(row[0] == 1);
636636
assert(row[1] == 2);
@@ -1058,8 +1058,8 @@ unittest
10581058
// Test queryRow
10591059
nullableRow = cn.queryRow(selectSQL);
10601060
assert(!nullableRow.isNull);
1061-
assert(nullableRow[0] == 11);
1062-
assert(nullableRow[1] == "aaa");
1061+
assert(nullableRow.get[0] == 11);
1062+
assert(nullableRow.get[1] == "aaa");
10631063
// Were all results correctly purged? Can I still issue another command?
10641064
cn.query(selectSQL).array;
10651065

@@ -1069,8 +1069,8 @@ unittest
10691069
// Test prepared queryRow
10701070
nullableRow = cn.queryRow(prepared);
10711071
assert(!nullableRow.isNull);
1072-
assert(nullableRow[0] == 11);
1073-
assert(nullableRow[1] == "aaa");
1072+
assert(nullableRow.get[0] == 11);
1073+
assert(nullableRow.get[1] == "aaa");
10741074
// Were all results correctly purged? Can I still issue another command?
10751075
cn.query(selectSQL).array;
10761076

0 commit comments

Comments
 (0)