Commit Graph

901 Commits

Author SHA1 Message Date
Yasuhiro Matsumoto 4731d0e6ab
Print type of result 2019-02-11 01:36:01 +09:00
Yasuhiro Matsumoto 5e7aedf685
Add test 2019-02-11 00:48:49 +09:00
Dimitri Roche ae5cbb218c
column_type SQLITE_TEXT returned as string by default 2019-02-11 00:48:38 +09:00
Dimitri Roche abc8991d4d
column types text, varchar, *char return as strings:
As opposed to []byte arrays. This brings sqlite closer
in line with other dbs like postgres, allowing downstream
consumers to assume the scanned value is string across underlying
dbs.
2019-02-11 00:48:28 +09:00
Jesse Rittner 062811fcbd more code formatting 2019-01-04 18:57:33 -05:00
Jesse Rittner 2ee07a473f adding additional info to FAQ about in-memory databases 2019-01-04 18:54:34 -05:00
mattn 3fa1c550ff
Merge pull request #679 from pocke/an-a
Fix typo in README
2019-01-05 01:17:12 +09:00
Masataka Pocke Kuwabara 1688b64fb7
Fix typo in README
s/an/a/
2019-01-04 23:55:45 +09:00
mattn 87ac1cb497
Merge pull request #675 from mattn/sqlite-amalgamation-3260000
upgrade amalgamation code
2018-12-18 12:04:05 +09:00
Yasuhiro Matsumoto aa13f26d02
upgrade amalgamation code 2018-12-18 09:11:45 +09:00
mattn 03cb0c0623
Merge pull request #673 from rittneje/revert-671
Revert 671
2018-12-09 01:24:40 +09:00
Jesse Rittner 2fe51daa56 fixed typo 2018-12-08 08:39:01 -05:00
Jesse Rittner 5846e1aa22 adding unit test 2018-12-08 08:31:45 -05:00
Jesse Rittner 291594080b Revert "SQLITE_OPEN_CREATE should be specified for sqlite3_open_v2 if mode is not rw"
This reverts commit 03b96a53ba.
2018-12-08 08:01:50 -05:00
mattn 248a1e667c
Merge pull request #671 from mattn/fix667
SQLITE_OPEN_CREATE should be specified for sqlite3_open_v2 if mode is…
2018-12-07 23:22:43 +09:00
Yasuhiro Matsumoto 03b96a53ba
SQLITE_OPEN_CREATE should be specified for sqlite3_open_v2 if mode is not rw
Fixes #667
Fixes #669
2018-12-07 16:07:16 +09:00
mattn e924752105
Merge pull request #670 from mattn/close-db
Close db even if sqlite3_open_v2 return non-zero.
2018-12-07 15:00:59 +09:00
Yasuhiro Matsumoto 8f4ea282cf
Close db even if sqlite3_open_v2 return non-zero. 2018-12-07 13:13:49 +09:00
mattn 6a9185d7b1
Merge pull request #626 from otoolep/fix_data_race
Fix data race in AutoCommit()
2018-11-22 01:49:42 +09:00
mattn 873ec57005
Merge pull request #643 from akalin/zero-length-blob
Distinguish between NULL and zero-length blobs on query
2018-11-22 01:48:38 +09:00
mattn c880439687
Merge pull request #644 from akalin/fix-pointer-conversion
Clean up blob to byte slice conversion
2018-11-22 01:47:23 +09:00
mattn 0a64ab220b
Merge pull request #665 from mjtrangoni/fix-gometalinter-issues
Fix gometalinter issues
2018-11-22 01:46:04 +09:00
Mario Trangoni d2d0bf1bf1 upgrade/package.go: Fix golint issue 2018-11-21 11:31:07 +01:00
Mario Trangoni c46327f585 sqlite3_test.go: Simplify return err 2018-11-21 11:31:05 +01:00
Mario Trangoni b76b90f754 Fix misspell issues.
See,
$ gometalinter --vendor --disable-all --enable=misspell ./...
sqlite3.go:1379:45⚠️ "succesfully" is a misspelling of "successfully" (misspell)
sqlite3.go:1390:30⚠️ "registerd" is a misspelling of "registered" (misspell)
sqlite3_func_crypt.go:16:27⚠️ "ceasar" is a misspelling of "caesar" (misspell)
sqlite3_func_crypt.go:43:59⚠️ "Ceasar" is a misspelling of "Caesar" (misspell)
sqlite3_opt_userauth_test.go:450:27⚠️ "succesful" is a misspelling of "successful" (misspell)
sqlite3_opt_userauth_test.go:456:27⚠️ "succesful" is a misspelling of "successful" (misspell)
2018-11-21 11:30:42 +01:00
mattn 1ef6010539
Merge pull request #664 from bk521234/patch-1
updating Windows TDM-GCC link to properly render
2018-11-18 01:49:37 +09:00
bk521234 76c6ec0516
updating link to properly render
fixing "[here](ttps://sourceforge.net/projects/tdm-gcc/)" to "[here](https://sourceforge.net/projects/tdm-gcc/)".
2018-11-17 09:45:35 -07:00
Yasuhiro Matsumoto eed79b8657
update README.md 2018-11-09 18:53:04 +09:00
mattn 1fc3fd346d
Merge pull request #657 from kevinburke/compile-tip
travis.yml: build Go tip
2018-11-02 16:49:07 +09:00
Kevin Burke 6a26e21416
all: fix cgo compile failures on tip
Apparently the cgo typechecks get better on tip, so use C.int instead
of Go integers.

Build tip as part of the Travis build, so we can ensure that any
errors are resolved before they get released to a wider audience.
2018-11-01 20:42:26 -10:00
mattn c7c4067b79
Merge pull request #655 from typeless/fix-too-large-arrary-error-v2
Fix build failure of incorrect expression for unsafe.Sizeof
2018-10-24 11:40:35 +09:00
Mura Li 576a2cb9f5 Fix build failure of incorrect expression for unsafe.Sizeof 2018-10-24 09:55:24 +08:00
mattn 276457a170
Merge pull request #654 from typeless/fix-too-large-arrary-error
Fix build failure on Windows/386
2018-10-24 10:09:38 +09:00
Mura Li d12a1386ff Fix build failure on Windows/386
The array size exceeds the address space of 32-bit platform.
See https://github.com/mattn/go-sqlite3/issues/238
2018-10-24 00:12:27 +08:00
mattn f3aa5ce899
Merge pull request #439 from typeless/add-unlock-notify
Add support for sqlite3_unlock_notify
2018-10-21 09:58:17 +09:00
Mura Li 68e53de11e Rename the wrapper functions to not pollute the sqlite3_* namespace 2018-10-20 23:02:21 +08:00
Mura Li eb08795f52 Add support for sqlite3_unlock_notify 2018-10-20 10:15:13 +08:00
mattn c67b489f7e
Merge pull request #616 from jung-kurt/patch-1
Update README: URL-encode connection options
2018-10-15 22:44:34 +09:00
mattn 3e1d67a264
Merge pull request #652 from rutsky/patch-1
Remove extra backtick and fix Markdown formatting
2018-10-15 22:43:54 +09:00
mattn a98b6a4af5
Merge pull request #648 from emirb/patch-1
Add Go 1.11 to Travis build matrix
2018-10-15 22:43:41 +09:00
Vladimir Rutsky 2bf2b22523
Remove extra backtick and fix Markdown formatting 2018-10-14 18:56:19 +02:00
mattn 5cd1ba5866
Merge pull request #650 from relud/patch-1
Fix typo in README.md
2018-10-13 10:15:51 +09:00
Daniel Thorn 0ad25499b6
Fix typo in README.md 2018-10-12 13:04:07 -07:00
Emir Beganović 3b73f9366b
Add Go 1.11 to Travis build matrix 2018-10-09 14:54:41 +04:00
mattn 0a88db3545
Merge pull request #645 from mattn/sqlite-amalgamation-3250200
upgrade amalgamation code
2018-09-26 18:02:20 +09:00
Yasuhiro Matsumoto 9cb060a131
upgrade amalgamation code 2018-09-26 17:18:13 +09:00
mattn e85a2792f3
Merge pull request #641 from akalin/fix-test-call
Actually check the value of RunTests
2018-09-25 00:01:02 +09:00
Frederick Akalin 3955886e38 Add fatal message 2018-09-22 11:50:52 -07:00
Frederick Akalin 2364b288cc Use GoBytes 2018-09-22 11:29:00 -07:00
Frederick Akalin ab4f1745f3 Fix bug 2018-09-22 11:26:20 -07:00