mirror of https://github.com/mattn/go-sqlite3.git
Remove obsolete comment
The implementation which caused it was abandoned before first commit.
This commit is contained in:
parent
911ebeea74
commit
2b0a8971e3
|
@ -165,10 +165,6 @@ func traceCallbackTrampoline(
|
||||||
info.StmtHandle = uintptr(p)
|
info.StmtHandle = uintptr(p)
|
||||||
|
|
||||||
case TraceClose:
|
case TraceClose:
|
||||||
// (conn == nil) is the *expected* state for the Close event:
|
|
||||||
// the driver's connection (the Go struct) must be closed
|
|
||||||
// before the underlying SQLite C API object, and very likely
|
|
||||||
// before the Close event is reported to this callback by SQLite.
|
|
||||||
handle := uintptr(p)
|
handle := uintptr(p)
|
||||||
if handle != info.ConnHandle {
|
if handle != info.ConnHandle {
|
||||||
panic(fmt.Sprintf("Different conn handle 0x%x (expected 0x%x) in SQLITE_TRACE_CLOSE event.",
|
panic(fmt.Sprintf("Different conn handle 0x%x (expected 0x%x) in SQLITE_TRACE_CLOSE event.",
|
||||||
|
|
Loading…
Reference in New Issue