From 521188ab05130d7244960db22a84075a63cfbdbd Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sun, 31 Aug 2008 02:59:33 -0500 Subject: [PATCH] new accessors --- extra/odbc/odbc.factor | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/extra/odbc/odbc.factor b/extra/odbc/odbc.factor index 5faca7109a..faa6c48354 100644 --- a/extra/odbc/odbc.factor +++ b/extra/odbc/odbc.factor @@ -213,7 +213,7 @@ C: column ] if ; : dereference-type-pointer ( byte-array column -- object ) - column-type { + type>> { { SQL-CHAR [ ascii alien>string ] } { SQL-VARCHAR [ ascii alien>string ] } { SQL-LONGVARCHAR [ ascii alien>string ] } @@ -235,7 +235,7 @@ TUPLE: field value column ; C: field : odbc-get-field ( statement column -- field ) - dup column? [ dupd odbc-describe-column ] unless dup >r column-number + dup column? [ dupd odbc-describe-column ] unless dup >r number>> SQL-C-DEFAULT 8192 CHAR: \space ascii string>alien dup >r 8192 @@ -244,15 +244,15 @@ C: field ] [ r> drop r> [ "SQLGetData Failed for Column: " % - dup column-name % - " of type: " % dup column-type name>> % + dup name>> % + " of type: " % dup type>> name>> % ] "" make swap ] if ; : odbc-get-row-fields ( statement -- seq ) [ dup odbc-number-of-columns [ - 1+ odbc-get-field field-value , + 1+ odbc-get-field value>> , ] with each ] { } make ;