Skip to content

Commit 9882f8f

Browse files
committed
Update documentation
1 parent cc12253 commit 9882f8f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sqlite3.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,6 +1876,9 @@ func (c *SQLiteConn) SetLimit(id int, newVal int) int {
18761876
// This method is not thread-safe as the returned error code can be changed by
18771877
// another call if invoked concurrently.
18781878
//
1879+
// Use SetFileControlInt64 instead if the argument for the opcode is documented
1880+
// as a pointer to a sqlite3_int64.
1881+
//
18791882
// See: sqlite3_file_control, https://www.sqlite.org/c3ref/file_control.html
18801883
func (c *SQLiteConn) SetFileControlInt(dbName string, op int, arg int) error {
18811884
if dbName == "" {
@@ -1901,8 +1904,8 @@ func (c *SQLiteConn) SetFileControlInt(dbName string, op int, arg int) error {
19011904
// This method is not thread-safe as the returned error code can be changed by
19021905
// another call if invoked concurrently.
19031906
//
1904-
// Prefer this method over SetFileControlInt when the argument to the underlying
1905-
// SQLite function is an int64.
1907+
// Only use this method if the argument for the opcode is documented as a pointer
1908+
// to a sqlite3_int64.
19061909
//
19071910
// See: sqlite3_file_control, https://www.sqlite.org/c3ref/file_control.html
19081911
func (c *SQLiteConn) SetFileControlInt64(dbName string, op int, arg int64) error {

0 commit comments

Comments
 (0)