Cameron Little
6223c9833f
Fixed typo: HasPrefox -> HasPrefix
...
This is breaking travis ci tests.
2015-03-05 09:30:00 -08:00
mattn
519a1d07c4
Don't modify dsn when has prefix file:
2015-03-06 02:00:09 +09:00
Yasuhiro Matsumoto
d86face730
Fix filename with loc parameter
2015-03-05 12:49:22 +09:00
mix3
e48e0597ab
Fix loc parsing
2015-03-05 11:06:33 +09:00
mattn
e273a1552e
Fixed bug for loc parameter
2015-03-05 01:17:38 +09:00
Yasuhiro Matsumoto
18aa166fa9
cleanup code
2015-03-04 22:58:32 +09:00
Yasuhiro Matsumoto
4c5c4e5261
Add loc=XXX parameters to handle timezone
2015-03-04 22:49:17 +09:00
Yasuhiro Matsumoto
da2bf8a0f3
Add FTS3 feature. Close #176
2015-02-24 11:28:02 +09:00
Attila Tajti
0486deea0d
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.
2015-01-26 16:50:50 +01:00
Mahadevan
a14f442f3e
Return error code of sqlite3_step, not sqlite3_reset
2015-01-26 14:10:18 +05:30
Ian Bishop
0b05acc293
Handle 13 digit datetime values
2015-01-02 16:42:25 +10:00
Nahum Shalman
ae251919bd
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"
2014-12-18 17:16:42 -05:00
Josiah Kiehl (formerly @bluepojo)
3dc340b45f
Catch missing arguments for Query()
...
Also improved error message on Exec() for consistency.
2014-11-29 14:08:02 -08:00
mattn
d10e2c8f62
Reset statement. Fixes #150
2014-11-16 23:51:46 +09:00
mattn
e63d2546a0
set/reset finalizer to free SQLite3 handles
2014-11-14 17:13:35 +09:00
mattn
12a1c0f435
rows.Close()
2014-11-14 02:21:49 +09:00
mattn
e5819757da
Should affect on only 386
2014-10-24 19:38:05 +09:00
mattn
c1aa7ac706
Merge pull request #155 from kartaca/master
...
fixed timezone problem for datetime types
2014-10-24 18:22:46 +09:00
Mehmet Gurevin
6710e996b5
fixed timezone problem for datetime types
2014-10-23 20:12:32 +03:00
mattn
00716954b7
Specify by -D
2014-10-22 13:31:54 +09:00
mattn
1fbcb3cdc2
Thread safe
2014-10-20 15:19:03 +09:00
romo
86932b40b0
add Version func for retrieving SQLite library version info
2014-10-13 11:05:49 +09:00
mattn
a80c27ba33
Merge commit '3d78a08b9f3307ac3874f5c120f7d4166c62efb9'
2014-09-10 15:02:09 +09:00
mattn
3d78a08b9f
Workaround for #109 , #147
2014-09-10 14:58:32 +09:00
mattn
3ab1d6f348
Merge branch 'master' of https://github.com/mattn/go-sqlite3
2014-09-03 09:21:35 +09:00
mattn
0a0c543dc0
Merge branch 'pr/135'
2014-09-03 09:21:15 +09:00
Peter Waller
764e046d89
Add "date" to decltypes parsed as a unix time
2014-09-02 16:36:34 +01:00
mattn
72cb8db627
Fixed checking parameter count
2014-08-18 18:48:48 +09:00
mattn
b718c29aea
Merge branch 'master' of github.com:mattn/go-sqlite3
2014-08-18 18:24:12 +09:00
mattn
d069822191
Check parameter count
2014-08-18 18:23:58 +09:00
mattn
6535341da9
Add one blank line for godoc
2014-08-18 17:00:59 +09:00
mattn
5e5d088a36
Add license header
2014-08-18 16:56:31 +09:00
Peter Waller
ff0960b999
Add 'date' to rc.decltypes interpreted as a time
2014-08-11 11:03:27 +01:00
Sven Engelhardt
deaffef7cb
implicitly close Stmt in Queryer, Close #131
...
the cls field tracks if the Stmt should be implicitly closed, in the
Exec() call the generated statement is always closed
2014-07-15 18:13:47 +02:00
Sean Duffy
d444acb5da
Add missing time format, fixes #43
2014-07-08 10:56:44 +01:00
mattn
d9e7576acf
Fix error on Execer. Close #124
2014-06-26 03:54:30 +09:00
mattn
d56eb93ecb
Implements Execer/Queryer. Close #60 , #82 , #113
2014-06-25 11:41:58 +09:00
mattn
a59fbb40eb
Merge pull request #116 from c14n/master
...
Enable extended error codes.
2014-06-25 11:34:13 +09:00
mattn
f7d2df0102
Remove dead code in SQLiteRows.Bind. Close #119
2014-06-25 11:30:31 +09:00
Christoph Martin
f395aa170e
Enable extended error codes.
2014-04-01 14:01:19 +02:00
tpltnt
487e651e19
tiny typo fix
2014-02-18 01:06:30 +01:00
mpl
4a7ad328b7
Next(): populate Row with []byte instead of string, as per driver doc
...
Fix on behalf of bradfitz, see
http://golang.org/pkg/database/sql/driver/#Rows
2013-12-05 16:58:38 +01:00
Robert Knight
19cb26da92
Provide more detailed error messages
...
Use the sqlite3_errmsg() API to retrieve more specific error
messages.
eg. Attempting to exec 'CREATE TABLE ExistingTableName (...)'
will now report 'table already exists: ExistingTableName' rather
than 'SQL logic error or missing database'
2013-11-19 09:13:19 +00:00
mattn
056b49918a
Merge pull request #88 from hattya/close_v2
...
Use sqlite3_close_v2()
2013-10-24 17:02:49 -07:00
Akinori Hattori
ef9b514cad
sqlite3_column_blob() returns NULL for zero-length BLOB
2013-10-24 22:25:07 +09:00
Akinori Hattori
4970c4bff6
Use sqlite3_close_v2()
2013-10-24 22:21:37 +09:00
mattn
2a2faeaf38
Include errno.h when build on cygwin. Closes #87
2013-10-02 12:51:44 +09:00
mattn
1ca536cf83
Disable Execer/Queryer until database/sql/driver implement QueryRow: #82
2013-09-12 10:46:35 +09:00
mattn
7dadd98d75
Execer/Queryer should use transaction
2013-09-12 09:11:01 +09:00
mattn
f595dd9955
Fixes Queryer
2013-09-09 13:44:24 +09:00