Commit Graph

703 Commits

Author SHA1 Message Date
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
mattn afe454f622 Merge pull request #429 from emakeev/cgo_panic_fix
Fix for cgo panic, issue #428: https://github.com/mattn/go-sqlite3/is
2017-06-21 10:05:20 +09:00
Evgeniy Makeev ef9f773b24 Fix for cgo panic, issue #428: https://github.com/mattn/go-sqlite3/issues/428 2017-06-20 17:36:44 -07:00
mattn a819994f72 Merge pull request #427 from otoolep/conn_stmt_race
Address data race during close database and statement
2017-06-18 12:59:56 +09:00
Philip O'Toole cd1cbf523a Sync database-close and statement-close
Potential fix for issue #426.
2017-06-17 12:26:06 -07:00
Philip O'Toole b951516ea0 Merge pull request #2 from mattn/master
Merge upstream
2017-06-17 12:02:47 -07:00
mattn 83c59d8440 Merge pull request #425 from xxr3376/empty-bytes
Treat []byte{} as empty BLOB instead of NULL.
2017-06-15 10:15:43 +09:00
Xu Xinran 3fa7ed2176 Use global variable for better performance. 2017-06-14 21:22:40 +08:00
Xu Xinran 308f5f1b2f Treat []byte{} as empty bytes instead of NULL. 2017-06-14 19:55:09 +08:00
David Anderson 0430b37250 Add support for collation sequences implemented in Go.
This allows Go programs to register custom comparison functions with
sqlite, and ORDER BY that comparator.
2017-06-08 19:14:07 -07:00
mattn 83772a7051 Merge pull request #421 from flimzy/readme
Use "sqlite3" instead of "sqlite" in usage example.
2017-05-29 23:59:28 +09:00
Jonathan Hall 47e1f81069 Use "sqlite3" instead of "sqlite" in usage example.
And a minor grammar improvement.
2017-05-29 15:57:51 +02:00
mattn cf7286f069 Merge pull request #409 from kenshaw/add-vtable-insert-update-delete-unit-test
Adding unit test for VTable Insert/Update/Delete
2017-04-08 00:46:27 +09:00
Kenneth Shaw 18135fa650 Adding unit test for VTable Insert/Update/Delete 2017-04-07 14:23:08 +07:00
mattn f68bb95000 Merge pull request #399 from kenshaw/add-vtable-updater-hook
Adding hook to vtable to allow VTab's to be updated
2017-04-05 10:57:31 +09:00
mattn 46e826d22a Merge pull request #407 from zombiezen/foreignkeys
Add _foreign_keys connection parameter
2017-04-02 23:13:39 +09:00
mattn c935ccca28 Merge pull request #406 from zombiezen/fixleak
Avoid leaking db if setting busy timeout fails
2017-04-02 23:10:16 +09:00
Ross Light c6d43c40e6 Add _foreign_keys connection parameter
Fixes #377
Updates #255
2017-04-01 11:06:59 -07:00
Ross Light 4c2dc8806a Avoid leaking db if setting busy timeout fails 2017-04-01 08:53:17 -07:00
Kenneth Shaw b8936b7ad3 Adding hook to vhook to allow vtables to be modified
This commit changes the vtable 'xUpdate' goModule field to a new
'cXUpdate' callback function which in turns calls a 'goVUpdate'
callback.

This new callback allows Go defined virtual table implementations
satisfying the VTabUpdater interface (also newly defined) a way to
delete/insert/update rows in a VTab.

Additionally, an anonymous interface is used within the goVUpdate
callback looking for 'TableName() string' which, when defined on a VTab
is used to provide a better contextual error message to end users if the
VTab is read only.

Care was taken to follow existing code style/conventions for this
addition, and for backwards-compatibility with existing VTab
implementations (hence why a new interface was required).
2017-03-24 15:35:33 +07:00
mattn b2e464529e Merge pull request #398 from mkungla/qfe1
Removed ambitious conn.Close()
2017-03-24 09:12:00 +09:00
Marko Kungla a1253acb6b
Removed ambitious conn.Close() 2017-03-24 01:06:55 +01:00
Yasuhiro Matsumoto fc03fa9989 close connection when got errors in Open 2017-03-24 08:48:29 +09:00
Yasuhiro Matsumoto 866c3293d9 fix breaking compatibility.
revert cf4bd560f1

close #394
2017-03-21 09:14:48 +09:00
Yasuhiro Matsumoto bd7fdb6033 fix test 2017-03-21 00:57:55 +09:00
Yasuhiro Matsumoto 1d0b0f0e72 disable extension when loading failed 2017-03-21 00:47:07 +09:00