]> gitweb.factorcode.org Git - factor.git/commitdiff
odbc: fix odbc-get-row-fields by using iota on the number of columns
authorAlexander Iljin <ajsoft@yandex.ru>
Sun, 30 Oct 2016 20:51:49 +0000 (23:51 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 31 Oct 2016 01:59:10 +0000 (18:59 -0700)
extra/odbc/odbc.factor

index e13b969cbcec46792b4af5b6e3ac2a316f1151ed..c95d577bb28608a6ac94fa823ea14a8297e0fe03 100644 (file)
@@ -242,7 +242,7 @@ C: <field> field
 
 : odbc-get-row-fields ( statement -- seq )
     [
-        dup odbc-number-of-columns [
+        dup odbc-number-of-columns iota [
             1 + odbc-get-field value>> ,
         ] with each
     ] { } make ;