21.10.2013 Views

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

Firebird 2.1 Language Reference Update

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Important<br />

Internal functions<br />

If the external function ACOS is declared in your database, it will override the internal function. To make the<br />

internal function available, DROP or ALTER the external function (UDF).<br />

Available in: DSQL, PSQL<br />

Added in: <strong>2.1</strong><br />

ASCII_CHAR()<br />

Description: Returns the ASCII character corresponding to the number passed in the argument.<br />

Result type: [VAR]CHAR(1) CHARACTER SET NONE<br />

Syntax:<br />

ASCII_CHAR ()<br />

::= an integer in the range [0..255]<br />

Important<br />

• If the external function ASCII_CHAR is declared in your database, it will override the internal function. To<br />

make the internal function available, DROP or ALTER the external function (UDF).<br />

• If you are used to the behaviour of the ASCII_CHAR UDF, which returns an empty string if the argument is<br />

0, please notice that the internal function correctly returns a character with ASCII code 0 here.<br />

Available in: DSQL, PSQL<br />

Added in: <strong>2.1</strong><br />

ASCII_VAL()<br />

Description: Returns the ASCII code of the character passed in.<br />

Result type: SMALLINT<br />

Syntax:<br />

ASCII_VAL (ch)<br />

ch ::= a [VAR]CHAR or text BLOB of max. 32767 bytes<br />

• If the argument is a string with more than one character, the ASCII code of the first character is<br />

returned.<br />

• If the argument is an empty string, 0 is returned.<br />

124

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

Saved successfully!

Ooh no, something went wrong!