 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Robert Guest
|
Posted: Mon May 14, 2007 8:11 am Post subject: Passing NULL as a parameter |
|
|
How do I pass Null as a parameter?
ie.
PARAMBYNAME('MYINT').ASINTEGER = 1;
PARAMBYNAME('MYDESC').VALUE = NULL;
EXECUTE PROCEDURE MYPROC :MYINT, :MYDESC
This won't work.
What will?
Kind Regards,
Robert. |
|
| Back to top |
|
 |
Dmitry Arefiev Guest
|
Posted: Mon May 14, 2007 8:11 am Post subject: Re: Passing NULL as a parameter |
|
|
Hello
To be more precise:
| Quote: | .Clear;
.Bound := True;
DataType := ftString; // or what else type the parameter should have |
Regards,
Dmitry
--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access engine
ThinDAC - multitier data access engine |
|
| Back to top |
|
 |
Martijn Tonies Guest
|
Posted: Mon May 14, 2007 8:11 am Post subject: Re: Passing NULL as a parameter |
|
|
| Quote: | How do I pass Null as a parameter?
ie.
PARAMBYNAME('MYINT').ASINTEGER = 1;
PARAMBYNAME('MYDESC').VALUE = NULL;
|
..Clear;
..Bound := True;
| Quote: | EXECUTE PROCEDURE MYPROC :MYINT, :MYDESC
This won't work.
What will?
|
--
Martijn Tonies
Database Workbench - development tool for Firebird and more!
Upscene Productions
http://www.upscene.com
My thoughts:
http://blog.upscene.com/martijn/
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|