Sven Engelhardt
1e1ebeb76a
database/sql expects io.EOF after all rows have been Next'ed
...
Return io.EOF, so rows.Next() will automatically call rows.Close()
after all results have been returned.
2012-03-01 17:54:34 +01:00
mattn
f6649431d4
add example of Prepare()/QueryRow(). add db.Close(). close #7
2012-03-02 00:47:26 +08:00
mattn
1fc69c55a3
merged bradfitz's patch. thanks.
2012-03-02 00:47:26 +08:00
lye
a620c1a086
For boolean values, marshal true to SQLite 1, not -1
...
SQLite stores boolean values as an integer, serializing true as 1 and
false as 0 [1], but it does not actually enforce this range. To match
the documentation (and fix the broken test case), this patch makes a Go
boolean true serialize properly to 1.
[1] http://www.sqlite.org/datatype3.html
2012-03-02 00:47:26 +08:00
lye
53e8d03ecf
Added additional testcase for boolean roundtrips
...
This test creates a simple table, inserts some dummy boolean values,
then pulls them back out to ensure they are marshalled correctly.
2012-03-02 00:47:25 +08:00
mattn
82e843112f
fixed package name.
2012-03-02 00:47:25 +08:00
Scott Lawrence
b1bc5ffed0
Updating README
2012-03-02 00:47:25 +08:00
Scott Lawrence
0b6c00a7e6
Updating example
2012-03-02 00:47:25 +08:00
Scott Lawrence
33fedebc8e
Fixing build at tip
2012-03-02 00:47:24 +08:00
Alien Science
d64145383b
Fixed double free when closing SQLiteStmt
...
Rows should not close the statement because Stmt has its own close
function. This caused a double free error/crash on Fedora 16 x86_64.
2012-03-02 00:47:24 +08:00
lye
e0e34d2bf7
Use pkg-config instead of a hardcoded LDFLAGS
2012-03-02 00:47:24 +08:00
mattn
038b8b7d0c
gofix.
2012-03-02 00:47:24 +08:00
mattn
8becc0613d
add README.mkd
2012-03-02 00:47:23 +08:00
Sven Engelhardt
01566134d1
allow to insert zero-length strings into database
...
&b[0] fails with an index out-of-bounds error for a slice with len()==0
2011-12-02 23:32:38 +01:00
mattn
fdbb364aba
fix LastInsertId()/RowsAffected().
2011-11-15 11:03:31 +09:00
mattn
e36e29f33e
fix test.
2011-11-15 10:41:43 +09:00
mattn
7211b7212b
last inserted row ID, affected rows.
2011-11-14 22:10:13 +09:00
mattn
650166a9cf
clean
2011-11-14 10:09:46 +09:00
mattn
8c1b840c44
simple test.
2011-11-13 03:52:02 +09:00
mattn
41c5c95a6c
transaction.
2011-11-13 03:20:52 +09:00
mattn
0b35f58e9d
gofmt.
2011-11-11 21:38:53 +09:00
mattn
79234d62ef
gofmt.
2011-11-11 21:38:32 +09:00
mattn
6c2d2c4b6b
first import.
2011-11-11 21:36:22 +09:00