| Commit message (Expand) | Author | Age | Files | Lines |
| * | callback: use handles rather than passing Go pointers•••The cgo pointer passing rules forbid passing a Go pointer to C if that
pointer points to memory containing other Go pointers. This is true
even if the Go pointer is converted to uintptr.
This change fixes the code to use a handle instead, and to look up the
handle in the callback function.
| Ian Lance Taylor | 2016-01-29 | 1 | -2/+3 |
| * | avoid cgoCheckPointer. ref https://github.com/golang/go/issues/12416 | Yasuhiro Matsumoto | 2015-12-30 | 1 | -2/+16 |
| * | Merge branch 'master' of https://github.com/mattn/go-sqlite3 | Yasuhiro Matsumoto | 2015-11-02 | 1 | -11/+11 |
| |\ |
|
| | * | 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 Roman | 2015-10-09 | 1 | -11/+11 |
| * | | Merge branch 'pr/207' | Yasuhiro Matsumoto | 2015-11-02 | 1 | -1/+1 |
| |\ \
| |/
|/| |
|
| | * | Fix doc comment | Lars Buitinck | 2015-06-05 | 1 | -1/+1 |
| * | | Add FTS4 unicode61 tokenizer support | looi | 2015-09-21 | 1 | -1/+1 |
| * | | Merge pull request #229 from danderson/master•••Implement support for calling Go functions from SQLite | mattn | 2015-09-16 | 1 | -3/+320 |
| |\ \ |
|
| | * | | Implement support for aggregation functions implemented in Go. | David Anderson | 2015-09-15 | 1 | -33/+210 |
| | * | | Add support for interface{} arguments in Go SQLite functions.•••This enabled support for functions like Foo(a interface{}) and
Bar(a ...interface{}).
| David Anderson | 2015-08-21 | 1 | -5/+8 |
| | * | | Implement support for variadic functions.•••Currently, the variadic part must all be the same type, because there's
no "generic" arg converter.
| David Anderson | 2015-08-21 | 1 | -10/+42 |
| | * | | Move argument converters to callback.go, and optimize return value handling.•••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.
| David Anderson | 2015-08-21 | 1 | -104/+18 |
| | * | | Implement support for passing Go functions as custom functions to SQLite.•••Fixes #226.
| David Anderson | 2015-08-21 | 1 | -0/+191 |
| * | | | introduce ability to pass sqlite_omit_load_extension•••sqlite_omit_load_extension is a go build tag which behaves much like its
C counterpart SQLITE_OMIT_LOAD_EXTENSION
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
| Jessica Frazelle | 2015-09-04 | 1 | -17/+2 |
| |/ / |
|
| * / | Add fix for go-sqlite3 truncating 64-bit integers when compiled by 32-bit min... | kiwih | 2015-08-07 | 1 | -8/+8 |
| |/ |
|
| * | Z suffix should be no-op | Yasuhiro Matsumoto | 2015-04-15 | 1 | -0/+1 |
| * | Merge pull request #194 from hallyn/tximm.2•••Add a txlock option when opening databases | mattn | 2015-04-14 | 1 | -4/+23 |
| |\ |
|
| | * | Add a txlock option when opening databases (v2)•••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>
| Serge Hallyn | 2015-04-13 | 1 | -4/+23 |
| * | | Fix NULs in text.•••NUL character is a valid symbols in UTF8.
Fixes #195
| Egon Elbre | 2015-04-12 | 1 | -1/+3 |
| |/ |
|
| * | Merge pull request #188 from larsmans/optimize•••Optimize queries | mattn | 2015-03-24 | 1 | -19/+23 |
| |\ |
|
| | * | Change strlen(s) > 0 => *s != '\000'. | Lars Buitinck | 2015-03-23 | 1 | -1/+1 |
| | * | Less C/Go border crossing to get database changes•••Speeds up the query benchmark by about 5% (Go 1.2.1, Linux x64).
| Lars Buitinck | 2015-03-23 | 1 | -18/+22 |
| * | | Implement number-named parameters. Close #187 | mattn | 2015-03-24 | 1 | -3/+19 |
| * | | Revert a6c208564eccf3c6743f608ef88398a4ca84c5eb | mattn | 2015-03-22 | 1 | -41/+3 |
| * | | Remove debug message | mattn | 2015-03-22 | 1 | -1/+0 |
| * | | Fix hang in test | mattn | 2015-03-22 | 1 | -11/+12 |
| * | | Fix build | mattn | 2015-03-22 | 1 | -1/+2 |
| * | | Should use C.int() | mattn | 2015-03-22 | 1 | -1/+1 |
| * | | revert 5253daf8561a6ca5015fd5ce79e4367912146be9 and add _busy_timeout query p... | mattn | 2015-03-22 | 1 | -20/+25 |
| * | | Support $NNN-style named parameter. Close #187 | mattn | 2015-03-22 | 1 | -4/+57 |
| * | | Next() should wait while BUSY or LOCKED because return value is bool | mattn | 2015-03-19 | 1 | -9/+17 |
| |/ |
|
| * | Apply -lpthread withou windows. | Yasuhiro Matsumoto | 2015-03-12 | 1 | -1/+0 |
| * | Link against pthread•••This is required by gccgo because of the pthread_mutex_trylock symbol.
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
| Stéphane Graber | 2015-03-11 | 1 | -0/+1 |
| * | Rename sqlite3.{c,h} to sqlite3-binding.{c,h}•••This fixes the problem where when building with gccgo, sqlite3.c is
overwritten, leading to a build failure.
An alternative would have been to move sqlite3*.{c,h} to a subdirectory,
but that seems to confuse the linker a fair bit and would just swap one
implementation-dependent issue for another.
Closes #20
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
| Stéphane Graber | 2015-03-11 | 1 | -1/+1 |
| * | Correct HasPrefix method name | Antoni Rościszewski | 2015-03-05 | 1 | -1/+1 |
| * | Don't modify dsn when has prefix file: | mattn | 2015-03-06 | 1 | -1/+3 |
| * | Fix filename with loc parameter | Yasuhiro Matsumoto | 2015-03-05 | 1 | -1/+1 |
| * | Fix loc parsing | mix3 | 2015-03-05 | 1 | -27/+31 |
| * | Fixed bug for loc parameter | mattn | 2015-03-05 | 1 | -16/+18 |
| * | cleanup code | Yasuhiro Matsumoto | 2015-03-04 | 1 | -13/+8 |
| * | Add loc=XXX parameters to handle timezone | Yasuhiro Matsumoto | 2015-03-04 | 1 | -8/+44 |
| * | Add FTS3 feature. Close #176 | Yasuhiro Matsumoto | 2015-02-24 | 1 | -0/+2 |
| * | load extensions using the C API instead of SQL•••This fixes the problem of loading ICU, which needs to replace existing
functions. Replacing existing functions are prohibited when a VM
is running.
| Attila Tajti | 2015-01-26 | 1 | -11/+5 |
| * | Return error code of sqlite3_step, not sqlite3_reset | Mahadevan | 2015-01-26 | 1 | -1/+2 |
| * | Handle 13 digit datetime values | Ian Bishop | 2015-01-02 | 1 | -1/+13 |
| * | set CFLAGS: -std=gnu99•••Fixes the following error message on SmartOS:
$ go get github.com/mattn/go-sqlite3
In file included from /usr/include/stdio.h:37:0,
from go/src/github.com/mattn/go-sqlite3/sqlite3.c:8422:
/opt/local/gcc47/lib/gcc/i386-sun-solaris2.11/4.7.3/include-fixed/sys/feature_tests.h:366:2: error: #error "Compiler or options invalid; UNIX 03 and POSIX.1-2001 applications require the use of c99"
| Nahum Shalman | 2014-12-18 | 1 | -0/+1 |
| * | Catch missing arguments for Query()•••Also improved error message on Exec() for consistency. | Josiah Kiehl (formerly @bluepojo) | 2014-11-29 | 1 | -1/+5 |
| * | Reset statement. Fixes #150 | mattn | 2014-11-16 | 1 | -0/+2 |
| * | set/reset finalizer to free SQLite3 handles | mattn | 2014-11-14 | 1 | -2/+7 |
| * | rows.Close() | mattn | 2014-11-14 | 1 | -0/+1 |