File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,11 @@ var (
5252
5353 // new API
5454 chdbConnect func (argc int , argv []* byte ) * chdb_connection
55- chdbCloseConn func (conn unsafe. Pointer )
55+ chdbCloseConn func (conn * chdb_connection )
5656 chdbQuery func (conn unsafe.Pointer , query string , format string ) * chdb_result
5757 chdbStreamQuery func (conn unsafe.Pointer , query string , format string ) * chdb_result
5858 chdbStreamFetchResult func (conn unsafe.Pointer , result * chdb_result ) * chdb_result
59- chdbStreamCancelQuery func (conn unsafe. Pointer , result * chdb_result )
59+ chdbStreamCancelQuery func (conn * chdb_connection , result * chdb_result )
6060 chdbDestroyQueryResult func (result * chdb_result )
6161 chdbResultBuffer func (result * chdb_result ) * byte
6262 chdbResultLen func (result * chdb_result ) uint //size_t
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ func newChdbConn(conn *chdb_connection) ChdbConn {
114114// Close implements ChdbConn.
115115func (c * connection ) Close () {
116116 if c .conn != nil {
117- chdbCloseConn (c .conn . internal_data )
117+ chdbCloseConn (c .conn )
118118 }
119119}
120120
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ func (c *streamingResult) Error() error {
3737// Free implements ChdbStreamResult.
3838func (c * streamingResult ) Free () {
3939 if c .curConn != nil && c .stream != nil {
40- // chdbStreamCancelQuery(c.curConn.internal_data , c.stream)
40+ chdbStreamCancelQuery (c .curConn , c .stream )
4141 chdbDestroyQueryResult (c .stream )
4242 }
4343
You can’t perform that action at this time.
0 commit comments