File tree 1 file changed +2
-1
lines changed
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -649,6 +649,7 @@ func (s *Stmt) ColumnValue(col int) Value {
649
649
// [FLOAT] as float64, [NULL] as nil,
650
650
// [TEXT] as string, and [BLOB] as []byte.
651
651
func (s * Stmt ) Columns (dest ... any ) error {
652
+ defer s .c .arena .mark ()()
652
653
types , ptr , err := s .columns (int64 (len (dest )))
653
654
if err != nil {
654
655
return err
@@ -701,6 +702,7 @@ func (s *Stmt) Columns(dest ...any) error {
701
702
// Any []byte are owned by SQLite and may be invalidated by
702
703
// subsequent calls to [Stmt] methods.
703
704
func (s * Stmt ) ColumnsRaw (dest ... any ) error {
705
+ defer s .c .arena .mark ()()
704
706
types , ptr , err := s .columns (int64 (len (dest )))
705
707
if err != nil {
706
708
return err
@@ -739,7 +741,6 @@ func (s *Stmt) ColumnsRaw(dest ...any) error {
739
741
}
740
742
741
743
func (s * Stmt ) columns (count int64 ) ([]byte , ptr_t , error ) {
742
- defer s .c .arena .mark ()()
743
744
typePtr := s .c .arena .new (count )
744
745
dataPtr := s .c .arena .new (count * 8 )
745
746
You can’t perform that action at this time.
0 commit comments