]> gitweb.factorcode.org Git - factor.git/commitdiff
new accessors
authorDoug Coleman <doug.coleman@gmail.com>
Tue, 2 Sep 2008 06:54:07 +0000 (01:54 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Tue, 2 Sep 2008 06:54:07 +0000 (01:54 -0500)
extra/db/sqlite/sqlite.factor

index 794ff5bacdeb139704a2ebc9c5eb85c09fcb5b00..231b60e083aa88b87844687ffa87b2189c99c201 100755 (executable)
@@ -52,12 +52,12 @@ M: sqlite-result-set dispose ( result-set -- )
     handle>> [ sqlite3_reset drop ] [ sqlite3_clear_bindings drop ] bi ;
 
 M: sqlite-statement low-level-bind ( statement -- )
-    [ statement-bind-params ] [ statement-handle ] bi
+    [ bind-params>> ] [ handle>> ] bi
     [ swap [ key>> ] [ value>> ] [ type>> ] tri sqlite-bind-type ] curry each ;
 
 M: sqlite-statement bind-statement* ( statement -- )
     sqlite-maybe-prepare
-    dup statement-bound? [ dup reset-bindings ] when
+    dup bound?>> [ dup reset-bindings ] when
     low-level-bind ;
 
 GENERIC: sqlite-bind-conversion ( tuple obj -- array )