aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_test.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix testing message at TestInsert and TestUpdateyoza2016-03-141-2/+2
|
* Test SQLiteRows.DeclTypes()Zac Medico2016-03-071-0/+35
|
* Clean up tempfiles in testsLars Buitinck2015-11-031-21/+21
| | | | "go test" leaves no more clutter in /tmp.
* Merge branch 'master' of https://github.com/mattn/go-sqlite3Yasuhiro Matsumoto2015-11-021-3/+23
|\
| * Store/retrieve timezones for time.Time values.Augusto Roman2015-10-091-3/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, the timezone information for a provided value was discarded and the value always stored as in UTC. However, sqlite allows specifying the timezone offsets and handles those values appropriately. This change stores the timezone information and parses it out if present, otherwise it defaults to UTC as before. One additional bugfix: Previously, a unix timestamp in seconds was parsed in the local timezone (rather than UTC), in contrast to a unix timestamp in milliseconds that was parsed in UTC. While fixing that extra bug, I cleaned up the parsing code -- no need to convert to a string and then parse it back again and risk a parse error, just to check the number of digits. The tests were extended to cover non-UTC timezones storage & retrieval, meaningful unix timestamps, and correct handling of a trailing Z.
* | fix testsYasuhiro Matsumoto2015-11-021-2/+1
| |
* | Merge branch 'pr/207'Yasuhiro Matsumoto2015-11-021-26/+50
|\ \ | |/ |/|
| * Test read-only databasesLars Buitinck2015-06-051-0/+21
| |
| * Clean up more tempfilesLars Buitinck2015-06-051-0/+1
| |
| * Get reliable tempfile names from ioutil.TempFileLars Buitinck2015-06-051-27/+28
| | | | | | | | Also makes them easier to spot (the tests tend to litter /tmp).
* | Merge pull request #229 from danderson/mastermattn2015-09-161-0/+212
|\ \ | | | | | | Implement support for calling Go functions from SQLite
| * | Implement support for aggregation functions implemented in Go.David Anderson2015-09-151-0/+59
| | |
| * | Add support for interface{} arguments in Go SQLite functions.David Anderson2015-08-211-0/+28
| | | | | | | | | | | | | | | This enabled support for functions like Foo(a interface{}) and Bar(a ...interface{}).
| * | Implement support for variadic functions.David Anderson2015-08-211-0/+13
| | | | | | | | | | | | | | | Currently, the variadic part must all be the same type, because there's no "generic" arg converter.
| * | Move argument converters to callback.go, and optimize return value handling.David Anderson2015-08-211-47/+51
| | | | | | | | | | | | | | | | | | A call now doesn't have to do any reflection, it just blindly invokes a bunch of argument and return value handlers to execute the translation, and the safety of the translation is determined at registration time.
| * | Implement support for passing Go functions as custom functions to SQLite.David Anderson2015-08-211-0/+108
| |/ | | | | | | Fixes #226.
* / Fix test. Close #216mattn2015-08-251-1/+3
|/ | | | | | When one goroutine close db that opended as :memory:, session will be lost. So another goroutine can't refer the last session. goroutine .
* 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.2mattn2015-04-141-5/+39
|\ | | | | Add a txlock option when opening databases
| * Add a txlock option when opening databases (v2)Serge Hallyn2015-04-131-5/+39
| | | | | | | | | | | | | | | | | | | | | | 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>
* | Fix NULs in text.Egon Elbre2015-04-121-0/+39
|/ | | | | | NUL character is a valid symbols in UTF8. Fixes #195
* 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
|