Skip to content

Commit 970eb6a

Browse files
committed
Fix.
1 parent fac27b8 commit 970eb6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stmt.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,7 @@ func (s *Stmt) ColumnValue(col int) Value {
649649
// [FLOAT] as float64, [NULL] as nil,
650650
// [TEXT] as string, and [BLOB] as []byte.
651651
func (s *Stmt) Columns(dest ...any) error {
652+
defer s.c.arena.mark()()
652653
types, ptr, err := s.columns(int64(len(dest)))
653654
if err != nil {
654655
return err
@@ -701,6 +702,7 @@ func (s *Stmt) Columns(dest ...any) error {
701702
// Any []byte are owned by SQLite and may be invalidated by
702703
// subsequent calls to [Stmt] methods.
703704
func (s *Stmt) ColumnsRaw(dest ...any) error {
705+
defer s.c.arena.mark()()
704706
types, ptr, err := s.columns(int64(len(dest)))
705707
if err != nil {
706708
return err
@@ -739,7 +741,6 @@ func (s *Stmt) ColumnsRaw(dest ...any) error {
739741
}
740742

741743
func (s *Stmt) columns(count int64) ([]byte, ptr_t, error) {
742-
defer s.c.arena.mark()()
743744
typePtr := s.c.arena.new(count)
744745
dataPtr := s.c.arena.new(count * 8)
745746

0 commit comments

Comments
 (0)