Commit Graph

678 Commits

Author SHA1 Message Date
mattn d5ffb5c0cc
Merge pull request #489 from Projectplace/fix-cancel-race
Fix race in ExecContext
2017-11-22 09:24:37 +09:00
Niklas Janlert 58004848f1 Fix race in ExecContext
When the context is cancelled, an interrupt should only be made if the
operation is still ongoing.
2017-11-21 13:40:00 +01:00
mattn c41df79ec0
Merge pull request #485 from mattn/sqlite3-3.21.0
upgrade SQLite3 amalgamation code
2017-11-21 17:02:23 +09:00
Yasuhiro Matsumoto bd2433c145 fix error message 2017-11-19 00:09:25 +09:00
Yasuhiro Matsumoto 7fbd11b453 handle new error message 2017-11-18 23:24:37 +09:00
Yasuhiro Matsumoto e5a5361164 upgrade SQLite3 amalgamation code 2017-11-18 00:25:05 +09:00
Yasuhiro Matsumoto 47157b55f3 replace header name 2017-11-18 00:06:37 +09:00
mattn f7bfd1d272
Merge pull request #484 from mattn/fix-header
fix header file
2017-11-18 00:05:36 +09:00
Yasuhiro Matsumoto 3ac25271e5 fix header file 2017-11-17 23:24:24 +09:00
mattn ed69081a91
Merge pull request #479 from kenshaw/move-registeraggregator
Move RegisterAggregator implementation
2017-11-14 17:56:34 +09:00
mattn 53494369ea
Merge pull request #440 from t2y/add-sqlite3-limit
Support sqlite3_limit to get/set the value of run-time limits
2017-11-14 09:52:08 +09:00
Tetsuya Morimoto 9dddfd1328 fix to be able to build with GOTAGS=libsqlite3 2017-11-05 20:01:16 +09:00
Tetsuya Morimoto b07b06e15c update to call _sqlite3_limit as a wrapper instead of sqlite3_limit 2017-11-05 19:45:38 +09:00
Kenneth Shaw 7174000f77 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.
2017-11-05 09:18:06 +07:00
Tetsuya Morimoto d785b8f812 support sqlite3_limit to get/set run time limit 2017-11-05 08:19:06 +09:00
mattn 615c193e01 Merge pull request #471 from msoap/patch-1
Updated travis.yml
2017-10-24 11:57:10 +09:00
Sergey Mudrik 9c2e10a3ba Updated travis.yml
Use the latest Go version in each major branch (documentation: https://docs.travis-ci.com/user/languages/go/#Specifying-a-Go-version-to-use)
2017-10-22 14:57:02 +03:00
Yasuhiro Matsumoto 5160b48509 fix test 2017-09-28 13:00:20 +09:00
Yasuhiro Matsumoto 103e6ee9ee remove rows.Close() in TestShortTimeout
couldn't reproduce on local environment
2017-09-28 12:56:17 +09:00
Yasuhiro Matsumoto c0f3d4135e fix broken test 2017-09-28 12:47:35 +09:00
Yasuhiro Matsumoto 49f9543f14 fix error handling
close #464
2017-09-28 12:40:27 +09:00
Yasuhiro Matsumoto 68bcba68d9 use file instead of memory for TestShortTimeout 2017-09-28 12:04:07 +09:00
Roland Pangu 5df314a2dc Updated "context" import since it has become a standard library after go 1.7 https://golang.org/doc/go1.7#context 2017-09-05 19:54:16 -07:00
mattn 05548ff555 Merge pull request #423 from danderson/master
Add support for collation sequences implemented in Go.
2017-09-01 17:40:05 +09:00
mattn 132eeedb4a Merge branch 'master' into master 2017-08-30 19:57:18 +09:00
mattn b8d537f91a Merge pull request #461 from mattn/solaris
support Solaris
2017-08-30 19:54:59 +09:00
Yasuhiro Matsumoto 8d81c2f1f8 fix race 2017-08-30 19:37:57 +09:00
Yasuhiro Matsumoto 58ed4a0810 fix race 2017-08-30 19:30:53 +09:00
Yasuhiro Matsumoto 911f1c4fa6 fix lock 2017-08-30 19:27:02 +09:00
Yasuhiro Matsumoto ee720241fc support Solaris
See #459
2017-08-30 13:19:01 +09:00
Yasuhiro Matsumoto d40d490543 fixes #458 2017-08-28 18:58:02 +09:00
Yasuhiro Matsumoto a97e7bb12f fix README.md
close #456
2017-08-27 14:00:16 +09:00
mattn 144deb6596 Merge pull request #454 from gholt/master
Fix to better handle NULL values in TEXT and BLOB columns.
2017-08-22 13:32:16 +09:00
Greg Holt b1c8062c18 Improved TestNilAndEmptyBytes
I forgot that bytes.Equals treats nil and []byte{} as equal.
2017-08-21 13:46:00 -07:00
Greg Holt 85e456ef27 Fix to pass TestNilAndEmptyBytes 2017-08-21 13:30:07 -07:00
Greg Holt d1772f0826 Added TestNilAndEmptyBytes 2017-08-21 13:22:09 -07:00
Yasuhiro Matsumoto 6654e412c3 fix test 2017-08-02 02:06:40 +09:00
Yasuhiro Matsumoto 7133e5d7f5 ignore errors in teardown 2017-08-02 01:49:00 +09:00
Yasuhiro Matsumoto 1828334c4a remove mutex 2017-08-02 01:43:14 +09:00
Yasuhiro Matsumoto 42a4d148c2 fix tests on tip 2017-08-02 01:26:57 +09:00
Yasuhiro Matsumoto 569232dc08 fix possibly double Close.
fixes #448
2017-08-02 00:06:18 +09:00
mattn 47fc4e5e91 Merge pull request #436 from zombiezen/recursivetriggers
Add connection option for recursive triggers
2017-07-10 23:00:56 +09:00
Ross Light 848386d7a2 Add connection option for recursive triggers
Similar to foreign keys, the recursive triggers PRAGMA affects the
interpretation of all statements on a connection.
2017-07-09 07:32:14 -07:00
mattn 9cbb097044 Merge pull request #434 from toba/master
Add functions to register update, commit, and rollback hooks (re-opened)
2017-07-07 09:26:25 +09:00
Jason Abbott 0644414997 Merge pull request #2 from mattn/master
Merge lastest from mattn
2017-07-06 11:52:32 -06:00
Yasuhiro Matsumoto acfa601240 SQLITE_THREADSAFE=1
fixes #274
2017-07-05 17:25:24 +09:00
Jason Abbott dbaad204e9 Merge pull request #1 from toba/missing-callback-hooks
Incorporate original PR 271 from https://github.com/brokensandals
2017-07-03 12:59:20 -06:00
Jason Abbott 59bd281a89 Incorporate original PR 271 from https://github.com/brokensandals 2017-07-03 12:51:48 -06:00
mattn 8a4c825cfc Merge pull request #431 from deepilla/issue-430
Don't convert Unix times to nanoseconds when querying datetime fields…
2017-07-01 20:48:21 +09:00
deepilla 05123859be Don't convert Unix times to nanoseconds when querying datetime fields. Fixes #430. 2017-06-30 13:17:04 -05:00