@@ -79,37 +79,37 @@ _sqlite3_exec(sqlite3* db, const char* pcmd, long long* rowid, long long* change
79
79
}
80
80
81
81
#ifdef SQLITE_ENABLE_UNLOCK_NOTIFY
82
- extern int sqlite3_step_blocking (sqlite3_stmt *stmt);
83
- extern int _sqlite3_step_blocking (sqlite3_stmt* stmt, long long* rowid, long long* changes);
84
- extern int sqlite3_prepare_v2_blocking (sqlite3 *db, const char *zSql, int nBytes, sqlite3_stmt **ppStmt, const char **pzTail);
82
+ extern int _sqlite3_step_blocking (sqlite3_stmt *stmt);
83
+ extern int _sqlite3_step_row_blocking (sqlite3_stmt* stmt, long long* rowid, long long* changes);
84
+ extern int _sqlite3_prepare_v2_blocking (sqlite3 *db, const char *zSql, int nBytes, sqlite3_stmt **ppStmt, const char **pzTail);
85
85
86
86
static int
87
- sqlite3_step_internal (sqlite3_stmt *stmt)
87
+ _sqlite3_step_internal (sqlite3_stmt *stmt)
88
88
{
89
- return sqlite3_step_blocking (stmt);
89
+ return _sqlite3_step_blocking (stmt);
90
90
}
91
91
92
92
static int
93
- _sqlite3_step_internal (sqlite3_stmt* stmt, long long* rowid, long long* changes)
93
+ _sqlite3_step_row_internal (sqlite3_stmt* stmt, long long* rowid, long long* changes)
94
94
{
95
- return _sqlite3_step_blocking (stmt, rowid, changes);
95
+ return _sqlite3_step_row_blocking (stmt, rowid, changes);
96
96
}
97
97
98
98
static int
99
- sqlite3_prepare_v2_internal (sqlite3 *db, const char *zSql, int nBytes, sqlite3_stmt **ppStmt, const char **pzTail)
99
+ _sqlite3_prepare_v2_internal (sqlite3 *db, const char *zSql, int nBytes, sqlite3_stmt **ppStmt, const char **pzTail)
100
100
{
101
- return sqlite3_prepare_v2_blocking (db, zSql, nBytes, ppStmt, pzTail);
101
+ return _sqlite3_prepare_v2_blocking (db, zSql, nBytes, ppStmt, pzTail);
102
102
}
103
103
104
104
#else
105
105
static int
106
- sqlite3_step_internal (sqlite3_stmt *stmt)
106
+ _sqlite3_step_internal (sqlite3_stmt *stmt)
107
107
{
108
108
return sqlite3_step(stmt);
109
109
}
110
110
111
111
static int
112
- _sqlite3_step_internal (sqlite3_stmt* stmt, long long* rowid, long long* changes)
112
+ _sqlite3_step_row_internal (sqlite3_stmt* stmt, long long* rowid, long long* changes)
113
113
{
114
114
int rv = sqlite3_step(stmt);
115
115
sqlite3* db = sqlite3_db_handle(stmt);
@@ -119,7 +119,7 @@ _sqlite3_step_internal(sqlite3_stmt* stmt, long long* rowid, long long* changes)
119
119
}
120
120
121
121
static int
122
- sqlite3_prepare_v2_internal (sqlite3 *db, const char *zSql, int nBytes, sqlite3_stmt **ppStmt, const char **pzTail)
122
+ _sqlite3_prepare_v2_internal (sqlite3 *db, const char *zSql, int nBytes, sqlite3_stmt **ppStmt, const char **pzTail)
123
123
{
124
124
return sqlite3_prepare_v2(db, zSql, nBytes, ppStmt, pzTail);
125
125
}
@@ -1674,7 +1674,7 @@ func (c *SQLiteConn) prepare(ctx context.Context, query string) (driver.Stmt, er
1674
1674
defer C .free (unsafe .Pointer (pquery ))
1675
1675
var s * C.sqlite3_stmt
1676
1676
var tail * C.char
1677
- rv := C .sqlite3_prepare_v2_internal (c .db , pquery , - 1 , & s , & tail )
1677
+ rv := C ._sqlite3_prepare_v2_internal (c .db , pquery , - 1 , & s , & tail )
1678
1678
if rv != C .SQLITE_OK {
1679
1679
return nil , c .lastError ()
1680
1680
}
@@ -1908,7 +1908,7 @@ func (s *SQLiteStmt) exec(ctx context.Context, args []namedValue) (driver.Result
1908
1908
}
1909
1909
1910
1910
var rowid , changes C.longlong
1911
- rv := C ._sqlite3_step_internal (s .s , & rowid , & changes )
1911
+ rv := C ._sqlite3_step_row_internal (s .s , & rowid , & changes )
1912
1912
if rv != C .SQLITE_ROW && rv != C .SQLITE_OK && rv != C .SQLITE_DONE {
1913
1913
err := s .c .lastError ()
1914
1914
C .sqlite3_reset (s .s )
@@ -1980,7 +1980,7 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error {
1980
1980
if rc .s .closed {
1981
1981
return io .EOF
1982
1982
}
1983
- rv := C .sqlite3_step_internal (rc .s .s )
1983
+ rv := C ._sqlite3_step_internal (rc .s .s )
1984
1984
if rv == C .SQLITE_DONE {
1985
1985
return io .EOF
1986
1986
}
0 commit comments