fix a hack. oops

db4
Doug Coleman 2008-02-29 15:41:54 -06:00
parent 869cfd5463
commit 93a8cbcac3
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,8 @@ M: sqlite-result-set dispose ( result-set -- )
M: sqlite-statement bind-statement* ( statement -- )
dup statement-bound? [ dup reset-statement ] when
[ statement-bind-params ] [ statement-handle ] bi sqlite-bind ;
[ statement-bind-params ] [ statement-handle ] bi
sqlite-bind ;
M: sqlite-statement bind-tuple ( tuple statement -- )
[
@ -64,8 +65,7 @@ M: sqlite-statement bind-tuple ( tuple statement -- )
[ sql-spec-type ] tri 3array
] with map
] keep
[ set-statement-bind-params ] keep
t over set-statement-bound? bind-statement* ;
bind-statement ;
: last-insert-id ( -- id )
db get db-handle sqlite3_last_insert_rowid

View File

@ -81,7 +81,7 @@ person "PERSON"
1 "billy" 10 3.14 <assigned-person> the-person1 set
2 "johnny" 10 3.14 <assigned-person> the-person2 set
! test-sqlite
test-sqlite
! test-postgresql
TUPLE: paste n summary author channel mode contents timestamp annotations ;