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

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

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

Operators and predicates<br />

instead of 32767. In <strong>Firebird</strong> <strong>2.1</strong> and up, if at least one of the operands is a BLOB, the result is also a BLOB<br />

and the maximum doesn't apply. For non-BLOB concatenations the result is still VARCHAR(n) with a maximum<br />

of 32765 bytes.<br />

Overflow checking<br />

Changed in: 1.0, 2.0<br />

Description: In <strong>Firebird</strong> versions 1.x, an error would be raised if the sum of the declared string lengths in a<br />

concatenation exceeded 65535 bytes, even if the actual result lay within the maximum string length of 32767<br />

bytes. In <strong>Firebird</strong> 2.0 and up, the declared string lengths will never cause an error. Only if the actual outcome<br />

exceeds 32765 bytes (the new limit for concatenation results) will an error be raised.<br />

Available in: DSQL, ESQL, PSQL<br />

NULL literals allowed<br />

Changed in: 2.0<br />

ALL<br />

Description: The ALL predicate now allows a NULL as the test value. Notice that this brings no practical benefits.<br />

In particular, a NULL test value will not be considered equal to NULLs in the subquery result set. Even if the<br />

entire set is filled with NULLs and the operator chosen is “=”, the predicate will not return true, but NULL.<br />

UNION as subselect<br />

Changed in: 2.0<br />

Description: The subselect in an ALL predicate may now also be a UNION.<br />

Available in: DSQL, ESQL, PSQL<br />

NULL literals allowed<br />

Changed in: 2.0<br />

ANY / SOME<br />

Description: The ANY (or SOME) predicate now allows a NULL as the test value. Notice that this brings no<br />

practical benefits. In particular, a NULL test value will not be considered equal to a NULL in the subquery result<br />

set.<br />

118

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

Saved successfully!

Ooh no, something went wrong!