11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SQLColAttributes<br />

Syntax<br />

status = SQLColAttributes (statement.env, col#, col.attribute, text.var, num.var)<br />

Note: This function is case-sensitive. If you want it to be case-insensitive, you<br />

must compile your programs using the BASIC command with the -i option.<br />

Description<br />

Use this function to get information about a column. SQLColAttributes returns the<br />

specific information requested by the value of col.attribute.<br />

Some DBMSs (such as SYBASE) do not make column information available until<br />

after the SQL statement is executed. In such cases, issuing an SQLColAttributes<br />

call before executing the statement produces an error.<br />

The SQL.SUCCESS.WITH.INFO return occurs when you issue the call for a column<br />

that contains an unsupported data type or when text.var is truncated. The SQL data<br />

type returned is SQL.BINARY (−2).<br />

If you are connected to an ODBC database, SQL.COLUMN.NULLABLE always<br />

returns SQL.NULLABLE.UNKNOWN.<br />

When you are connected to an ODBC data source, calling SQLColAttributes with<br />

one of the column attributes returns a status of SQL.ERROR with SQLSTATE set to<br />

S1091.<br />

1-794 <strong>UniBasic</strong> <strong>Commands</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!