SendODBCTypedCommand (open)

Sends a query to an ODBC driver and specify the required return types

Syntax

LOADLIB "wh::dbase/odbc.whlib";

RECORD ARRAY FUNCTION SendODBCTypedCommand(INTEGER transaction, STRING query, INTEGER ARRAY types)

Parameters

INTEGER transaction

ODBC transaction

STRING query

Query to send

INTEGER ARRAY types

An integer array, containing a typeid for every returned column indicating the requested type

Return value

RECORD ARRAY

Returned records, if exist

Description

Sends a single, raw SQL query to the ODBC driver, without any further processing. Unlike @link SendODBCCommand, this command allows you to specify the exact HareScript types you want to be used in the returned record array