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.

BEGIN ... END blocks may be empty<br />

Changed in: 1.5<br />

DDL statements<br />

Description: BEGIN ... END blocks may be empty in <strong>Firebird</strong> 1.5 and up, allowing you to write stub code without<br />

having to resort to dummy statements.<br />

Example:<br />

create procedure grab_ints (a integer, b integer)<br />

as<br />

begin<br />

end<br />

ALTER PROCEDURE<br />

Available in: DSQL, ESQL<br />

Default argument values<br />

Added in: 2.0<br />

Description: You can now provide default values for stored procedure arguments, allowing the caller to omit<br />

one or more items from the end of the argument list. See CREATE PROCEDURE for syntax and details.<br />

Example:<br />

alter procedure TestProc<br />

(a int, b int default 1007, s varchar(12) = '-')<br />

...<br />

COLLATE in variable and parameter declarations<br />

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

Description: <strong>Firebird</strong> <strong>2.1</strong> and up allow COLLATE clauses in declarations of input/output parameters and local<br />

variables. See CREATE PROCEDURE for syntax and details.<br />

Domains supported in parameter and variable declarations<br />

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

Description: <strong>Firebird</strong> <strong>2.1</strong> and up support the use of domains instead of SQL datatypes when declaring input/output<br />

parameters and local variables. See CREATE PROCEDURE for syntax and details.<br />

32

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

Saved successfully!

Ooh no, something went wrong!