Skip to content

Commit ec34b05

Browse files
committed
Changed accessor in test
1 parent 145de8e commit ec34b05

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Take this example on how to deal with a database backup using SQLITEs own functi
144144
// Each iteration of this loop copies 500 database pages from database db to the backup database.
145145
do {
146146
rc = sqlite3_backup_step(state.get(), 500);
147-
std::cout << "Remaining " << sqlite3_backup_remaining(pBackup) << "/" << sqlite3_backup_pagecount(pBackup) << "\n";
147+
std::cout << "Remaining " << sqlite3_backup_remaining(state.get()) << "/" << sqlite3_backup_pagecount(state.get()) << "\n";
148148
} while(rc == SQLITE_OK || rc == SQLITE_BUSY || rc == SQLITE_LOCKED);
149149
}
150150
} // Release allocated resources.

tests/shared_connection.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main() {
3030

3131
{
3232

33-
auto con = db.get_sqlite3_connection();
33+
auto con = db.connection();
3434

3535
{
3636
database db2(con);

0 commit comments

Comments
 (0)