aboutsummaryrefslogtreecommitdiff
path: root/sqlite3_test.go (follow)
Commit message (Expand)AuthorAgeFilesLines
* Updated Ping to return ErrBadConn•••Added TestOpenContext Added TestFileCopyTruncate Added ping to doTestOpen MichaelS112019-06-191-9/+21
* Print type of resultYasuhiro Matsumoto2019-02-111-1/+1
* Add testYasuhiro Matsumoto2019-02-111-0/+20
* fixed typoJesse Rittner2018-12-081-1/+1
* adding unit testJesse Rittner2018-12-081-0/+58
* Merge pull request #643 from akalin/zero-length-blob•••Distinguish between NULL and zero-length blobs on querymattn2018-11-221-0/+31
|\
| * Clean up testFrederick Akalin2018-09-221-2/+4
| * Add failing testFrederick Akalin2018-09-221-0/+29
* | sqlite3_test.go: Simplify return errMario Trangoni2018-11-211-4/+1
* | Add fatal messageFrederick Akalin2018-09-221-1/+1
* | Actually check the value of RunTestsFrederick Akalin2018-09-221-1/+4
|/
* implementation of set_authorizer interfaceGrzegorz MarszaƂek2018-08-251-0/+41
* Use t.Skip for TestUpsert to be compliant with the actual cade base.Yoann Cerda2018-06-121-4/+1
* fix upsert log typos.Yoann Cerda2018-06-121-1/+3
* bump sqlite3 3.24.0 and add TestUpsert.Yoann Cerda2018-06-121-0/+50
* fix/118•••* Added TestMultiBlobs * Removed dead code Fixes #118Gert-Jan Timmer2018-06-121-0/+51
* Add zero-length slice testLucas Manuel Rodriguez2018-05-311-0/+4
* Add nil check in bind and a testLucas Manuel Rodriguez2018-05-301-0/+15
* Merge pull request #549 from mjtrangoni/fix-linter-issues•••Fix linter issuesmattn2018-04-171-7/+4
|\
| * fix small codespell issueMario Trangoni2018-04-171-1/+1
| * fix all gosimple issuesMario Trangoni2018-04-171-6/+3
* | Move RegisterAggregator implementation•••The SQLiteConn.RegisterAggregator implementation was defined in sqlite3_trace.go file, which is guarded with a build constraint. This change simply moves RegisterAggregator to the main sqlite3.go file, and moves accompanying unit tests. The rationale for this move is that it was not possible for downstream using packages to use RegisterAggregator without also specifying (and notifying the user) the 'trace' build tag. Kenneth Shaw2017-11-051-0/+60
* | Merge branch 'master' into mastermattn2017-08-301-14/+568
|\|
| * Improved TestNilAndEmptyBytes•••I forgot that bytes.Equals treats nil and []byte{} as equal. Greg Holt2017-08-211-1/+3
| * Added TestNilAndEmptyBytesGreg Holt2017-08-211-0/+54
| * fix testYasuhiro Matsumoto2017-08-021-34/+35
| * ignore errors in teardownYasuhiro Matsumoto2017-08-021-2/+2
| * fix tests on tipYasuhiro Matsumoto2017-08-021-14/+420
| * Add connection option for recursive triggers•••Similar to foreign keys, the recursive triggers PRAGMA affects the interpretation of all statements on a connection. Ross Light2017-07-091-0/+29
| * Incorporate original PR 271 from https://github.com/brokensandalsJason Abbott2017-07-031-0/+61
| * Don't convert Unix times to nanoseconds when querying datetime fields. Fixes ...deepilla2017-06-301-0/+1
* | Add support for collation sequences implemented in Go.•••This allows Go programs to register custom comparison functions with sqlite, and ORDER BY that comparator. David Anderson2017-06-081-0/+121
|/
* Add _foreign_keys connection parameter•••Fixes #377 Updates #255 Ross Light2017-04-011-0/+29
* not use underscoreYasuhiro Matsumoto2017-03-051-2/+2
* fix testYasuhiro Matsumoto2017-01-191-60/+0
* go vet && golintYasuhiro Matsumoto2016-11-061-21/+21
* separate testYasuhiro Matsumoto2016-11-041-36/+0
* support named paramsYasuhiro Matsumoto2016-11-041-3/+3
* implement go18 PingerYasuhiro Matsumoto2016-11-031-0/+16
* TestAggregatorRegistration may fail if trace feature is not implementedYasuhiro Matsumoto2016-09-081-1/+2
* Fix testing message at TestInsert and TestUpdateyoza2016-03-141-2/+2
* Test SQLiteRows.DeclTypes()Zac Medico2016-03-071-0/+35
* Clean up tempfiles in tests•••"go test" leaves no more clutter in /tmp. Lars Buitinck2015-11-031-21/+21
* Merge branch 'master' of https://github.com/mattn/go-sqlite3Yasuhiro Matsumoto2015-11-021-3/+23
|\
| * Store/retrieve timezones for time.Time values.•••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. Augusto Roman2015-10-091-3/+23
* | 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.TempFile•••Also makes them easier to spot (the tests tend to litter /tmp). Lars Buitinck2015-06-051-27/+28