aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Modified for windows support.Carlos Castillo2012-10-271-2/+0
|
* Fix read of invalid (already freed) memory.John Gallagher2012-10-151-1/+1
|
* workaround on windows. currently, int64 does not work correctly.mattn2012-09-121-1/+3
|
* gofmt + fix erroneous t.Errorf("foo:", err) statements to t.Error("foo:", err) .cds2012-09-111-2/+2
| | | | | | | | | | Original: --- FAIL: TestInsert (0.00 seconds) sqlite3_test.go:42: Failed to create table:%!(EXTRA *errors.errorString=unable to open database file) With corrections: --- FAIL: TestInsert (0.00 seconds) sqlite3_test.go:42: Failed to create table: unable to open database file
* bug fix: Byte slices belong to the caller and so must be copies.Thomas Leske2012-08-201-1/+8
| | | | | With the exeption of slices in the result type sql.RawBytes, new calls to Sqlite must not corrupt slices.
* Handle bool values with "BOOLEAN" columns.jander2012-05-251-2/+5
|
* Increase busy timeout to 5 seconds.John Gallagher2012-04-071-1/+1
| | | | | 500ms is short enough that go-sql-test sometimes fails with "database locked", and it's the value used by Python's sqlite3 driver.
* Handle time.Time values with "timestamp" columns.John Gallagher2012-04-071-6/+36
|
* merged #11mattn2012-03-121-2/+12
| | | | close #11
* database/sql expects io.EOF after all rows have been Next'edSven Engelhardt2012-03-021-1/+5
| | | | | Return io.EOF, so rows.Next() will automatically call rows.Close() after all results have been returned.
* merged bradfitz's patch. thanks.mattn2012-02-201-11/+15
|
* For boolean values, marshal true to SQLite 1, not -1lye2012-02-061-1/+1
| | | | | | | | | SQLite stores boolean values as an integer, serializing true as 1 and false as 0 [1], but it does not actually enforce this range. To match the documentation (and fix the broken test case), this patch makes a Go boolean true serialize properly to 1. [1] http://www.sqlite.org/datatype3.html
* Fixing build at tipScott Lawrence2012-01-201-2/+2
|
* Fixed double free when closing SQLiteStmtAlien Science2012-01-191-4/+0
| | | | | Rows should not close the statement because Stmt has its own close function. This caused a double free error/crash on Fedora 16 x86_64.
* Use pkg-config instead of a hardcoded LDFLAGSlye2012-01-101-1/+1
|
* allow to insert zero-length strings into databaseSven Engelhardt2011-12-021-3/+8
| | | | &b[0] fails with an index out-of-bounds error for a slice with len()==0
* fix LastInsertId()/RowsAffected().mattn2011-11-151-2/+2
|
* last inserted row ID, affected rows.mattn2011-11-141-1/+13
|
* cleanmattn2011-11-141-1/+0
|
* gofmt.mattn2011-11-111-19/+20
|
* first import.mattn2011-11-111-0/+253