MCPcopy Create free account
hub / github.com/antirez/botlib / sqlEnd

Function sqlEnd

sqlite_wrap.c:121–127  ·  view source on GitHub ↗

This function should be called only if you don't get all the rows * till the end. It is safe to call anyway. */

Source from the content-addressed store, hash-verified

119/* This function should be called only if you don't get all the rows
120 * till the end. It is safe to call anyway. */
121void sqlEnd(sqlRow *row) {
122 if (row->stmt == NULL) return;
123 xfree(row->col);
124 sqlite3_finalize(row->stmt);
125 row->col = NULL;
126 row->stmt = NULL;
127}
128
129/* After sqlGenericQuery() returns SQLITE_ROW, you can call this function
130 * with the 'row' object pointer in order to get the rows composing the

Callers 3

sqlNextRowFunction · 0.85
sqlSelectIntFunction · 0.85
kvGetFunction · 0.85

Calls 1

xfreeFunction · 0.85

Tested by

no test coverage detected