aboutsummaryrefslogtreecommitdiff
path: root/sqlite3.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes package namemattn2013-08-131-1/+1
|
* Start work on introducing machine-readable error codes.Jochen Voss2013-08-131-11/+15
| | | | | | This commit introduces a new type 'ErrNo', implementing the error interface. Constants for all sqlite3 error codes are provided in the new source file "error.go".
* call sqlite3_column_blob() before sqlite3_column_bytes()David Hill2013-08-021-1/+1
| | | | | | | | sqlite3 documentation states sqlite3_column_blob could modify the the content and recommends the "safest and easiest" policy is to invoke sqlite3_column_blob() followed by sqlite3_column_bytes() from: http://www.sqlite.org/c3ref/column_blob.html
* go fmtmattn2013-05-111-2/+2
|
* the SQLiteResult refers to the connection after it should no longer be ↵Russ Cox2013-05-111-4/+10
| | | | referring to the connection. The fix is to fetch the answers before Exec returns, just in case someone wants them.
* Treat int as 64bitmattn2013-04-091-1/+1
|
* Add int32 type, close #55mattn2013-04-081-0/+2
|
* Fix #54mattn2013-04-061-0/+8
|
* Fixed #37mattn2013-02-131-1/+4
|
* Some older version of sqlite3 does not have SQLITE_OPEN_URI.mattn2013-02-031-3/+11
|
* Add comments.mattn2013-01-311-18/+44
|
* add flag SQLITE_OPEN_URI to open. closes #38mattn2013-01-291-1/+2
|
* Support more of the timestamp formats undestood by SQLiteMicah Stetson2012-12-291-0/+4
|
* Support time values with nanosecond precisionMicah Stetson2012-12-291-13/+14
|
* Convert times to UTC before storageMicah Stetson2012-12-291-1/+1
|
* Fix #33 and #34Micah Stetson2012-12-291-15/+15
|
* check destination type whether it's *time.Time or not.mattn2012-12-261-7/+14
|
* No return error when invalid datetime.mattn2012-12-261-1/+1
|
* fixed last_id/changes. it seems long alignment values.mattn2012-12-071-4/+16
|
* Add support for extracting `2006-01-02 15:04:05.000` formatted datetime.Dobrosław Żybort2012-11-291-2/+6
|
* Add support for extracting 2006-01-02 formatted timestamps.lye2012-11-031-1/+5
| | | | | | | | | | | | SQLite3 stores timestamps very naively -- they're completely untyped, and can contain any value. The previous implementation always inserts values in the 'datetime' format, and returns an error when attempting to extract a field with a different format. Some legacy databases, unfortunately, were generated using the 'date' SQLite3 function, which produces rows in the '2006-01-02' format. This patch adds a special case so that these rows can be extracted without error.
* 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