Ver Mensaje Individual
  #6  
Antiguo 11-10-2011
Toni Toni is offline
Miembro
 
Registrado: may 2003
Ubicación: Barcelona - España
Posts: 364
Reputación: 22
Toni Va por buen camino
Muchas gracias Maeyanes.

Lo pongo aqui para que este mas visible, simplemente hay que utilizar el nuevo keyword TYPE OF en el momento de declarar las variables o parametros:

Código SQL [-]
Now with version 2.1 I can use domain in PSQL. 
I just need to type the domain name if i want to inheriting the check clause and the default value, 
or I can use the TYPE OF keyword if I just want the data type so I can define something like this:


CREATE PROCEDURE INSERT_PRODUCT(
    DESCRIPTION STRING,
    PRICE TYPE OF MONEY,
    ACTIVE BOOL
)
BEGIN
  ...
END

Es una muy buena cosa!

Aunque lo estoy probando desde el EMS IB MANAGER 3 y me da error de keyword no reconocido. Sera por la version del IB MANAGER o porque?

Nota: Utilizo la version de servidor Firebird 2.5
__________________
Saludos,

Bitman

Última edición por Toni fecha: 11-10-2011 a las 17:30:10.
Responder Con Cita