aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_test.go (follow)
Commit message (Expand)AuthorAgeFilesLines
* Remove debug codeYasuhiro Matsumoto2015-04-151-2/+0
* Z suffix should be no-opYasuhiro Matsumoto2015-04-151-1/+41
* Merge pull request #194 from hallyn/tximm.2•••Add a txlock option when opening databasesmattn2015-04-141-5/+39
|\
| * Add a txlock option when opening databases (v2)•••When specified, changes the default locking at a tx.Begin. Changelog (v2): Add a testcase to ensure _txlock is properly handled. Closes #189 Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com> Serge Hallyn2015-04-131-5/+39
* | Fix NULs in text.•••NUL character is a valid symbols in UTF8. Fixes #195 Egon Elbre2015-04-121-0/+39
|/
* Implement number-named parameters. Close #187mattn2015-03-241-0/+36
* Revert a6c208564eccf3c6743f608ef88398a4ca84c5ebmattn2015-03-221-36/+0
* Fix buildmattn2015-03-221-3/+3
* Fix testmattn2015-03-221-1/+1
* Support $NNN-style named parameter. Close #187mattn2015-03-221-0/+36
* Fix testYasuhiro Matsumoto2015-03-051-3/+3
* Remove test dupYasuhiro Matsumoto2015-03-051-96/+0
* Fix loc parsingmix32015-03-051-2/+2
* Add testmix32015-03-051-0/+96
* Add testYasuhiro Matsumoto2015-03-051-0/+97
* Fixed bug for loc parametermattn2015-03-051-10/+7
* Add loc=XXX parameters to handle timezoneYasuhiro Matsumoto2015-03-041-0/+65
* Fix testmattn2015-01-261-1/+1
* Fix testmattn2015-01-261-1/+1
* Add test for Versionmattn2015-01-261-0/+7
* Handle 13 digit datetime valuesIan Bishop2015-01-021-0/+1
* Fix for sqlite3_test import.Paweł Błaszczyk2014-08-201-1/+1
* Add one blank line for godocmattn2014-08-181-0/+1
* Add license headermattn2014-08-181-0/+4
* Add TestStressmattn2014-07-161-0/+37
* Renamemattn2014-07-041-2/+2
* Renamemattn2014-07-041-1/+1
* Enable test for Queryermattn2014-06-261-40/+40
* Fix error on Execer. Close #124mattn2014-06-261-24/+22
* Add benchmark tests. As used by other database/sql drivers.Tim O'Brien2013-09-181-0/+11
* add new test for WAL journal_modeDavid Hill2013-09-121-1/+46
* Disable Execer/Queryer until database/sql/driver implement QueryRow: #82mattn2013-09-121-63/+65
* Fixes testmattn2013-09-091-5/+11
* Fixes Execer/Queryermattn2013-09-091-16/+18
* Fixes testmattn2013-09-091-1/+37
* Implements Execermattn2013-09-091-0/+21
* Fixes testmattn2013-09-031-7/+2
* Add testsmattn2013-09-031-0/+161
* Start work on introducing machine-readable error codes.•••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". Jochen Voss2013-08-131-1/+1
* Use file in os.TempDir() for tests.•••Sometimes it's best to not create files in the directories where code lives... for example, that directory might be read-only, or folks might be using source-control or build systems that disallow that behavior. To fix this, we create a file in the temp directory and use it instead. We don't use ioutil.TempFile(), since that actually creates the file, and we'd like the tests to run as if the file had never existed. We use 16 bytes from crypto/rand to avoid people doing bad things with symlinks in the temp directory. Graeme Connell2013-05-091-16/+31
* Support more of the timestamp formats undestood by SQLiteMicah Stetson2012-12-291-5/+17
* Support time values with nanosecond precisionMicah Stetson2012-12-291-2/+2
* Refactor timestamp testsMicah Stetson2012-12-291-177/+32
* Convert times to UTC before storageMicah Stetson2012-12-291-2/+15
* Fix #33 and #34Micah Stetson2012-12-291-8/+8
* Add support for extracting `2006-01-02 15:04:05.000` formatted datetime.Dobrosław Żybort2012-11-291-2/+70
* Add support for extracting 2006-01-02 formatted timestamps.•••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. lye2012-11-031-0/+60
* 'is' does not work in some older sqlite3.mattn2012-09-121-2/+2
* Replace t.Error(); return statement pairs with single t.Fatal()cds2012-09-111-104/+52
* Added missing db.Close() and rows.Close() calls; fixes tests on vmhgfs filesy...•••Individual tests were never successfully removing 'foo.db' (the error was ignored), which caused everything but the first test to fail on my vmhgfs filesystem. Adding the relevant defer db.Close() and rows.Close() calls fixed the leaks, enabling os.Remove() to work. cds2012-09-111-0/+9