odbc: convert string to alien in odbc-prepare

char-rename
Alexander Iljin 2016-10-30 23:49:46 +03:00 committed by John Benediktsson
parent 667727bf0c
commit f72f116364
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ PRIVATE>
SQLDisconnect succeeded? [ "odbc-disconnect failed" throw ] unless ;
: odbc-prepare ( dbc string -- statement )
[ alloc-stmt-handle dup ] dip dup length SQLPrepare
[ alloc-stmt-handle dup ] dip ascii string>alien
dup length SQLPrepare
succeeded? [ "odbc-prepare failed" throw ] unless ;
: odbc-free-statement ( statement -- )