Share

TclDBI

Tracker: Patches

5 segfault in tcldbi.c - ID: 888313
Last Update: Attachment added ( kvutza )

When there are obtained data of an unknown type, then
NULL is put into Tcl_ListObjAppendElement(). It results
in segmentation fault. Example:

package require Tcldbi
set db [dbi::dbi new sqlite dbname test.db sqlite_dbdir
/a_dir]
set cur [$db query {SELECT * FROM test}]
puts [$cur first_row]
---segmentation fault---

It is so because one column in table "test" is DATE.
While SQLite is typeless, it allows to create tables
with DATE attribute.


Martin Saturka ( kvutza ) - 2004-01-31 21:26

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
tcldbi.c.diff just a proposal patch Download

Change ( 1 )

Field Old Value Date By
File Added 75323: tcldbi.c.diff 2004-01-31 21:26 kvutza