]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/db/postgresql/lib/lib.factor
core: Add the shuffler words but without primitives.
[factor.git] / basis / db / postgresql / lib / lib.factor
index d4ad6dd18a8a653aa360c4fef1991736b8558a0b..5a51dc0e12fb1165c5ca47c3cd96c162146181ca 100644 (file)
@@ -118,7 +118,7 @@ M: postgresql-result-null summary ( obj -- str )
 
 : pq-get-string ( handle row column -- obj )
     3dup PQgetvalue utf8 alien>string
-    dup empty? [ [ pq-get-is-null f ] dip ? ] [ [ 3drop ] dip ] if ;
+    dup empty? [ [ pq-get-is-null f ] dip ? ] [ 3nip ] if ;
 
 : pq-get-number ( handle row column -- obj )
     pq-get-string dup [ string>number ] when ;
@@ -135,7 +135,7 @@ M: postgresql-malloc-destructor dispose ( obj -- )
 : pq-get-blob ( handle row column -- obj/f )
     [ PQgetvalue ] 3keep 3dup PQgetlength
     dup 0 > [
-        [ 3drop ] dip
+        3nip
         [
             memory>byte-array >string
             { uint }