Mario *LigH* Rohkrämer wrote:
Quote:
This obviously worked; still, I would be more satisfied if I could define a
parameter as NULL, so that dbExpress could submit a NULL parameter, instead
of patching the SQL statement text... |
I don't know dbExpress at all, but in ESQL you use "indicator variables"
along with host variables to indicate whether a parameter is NULL or not:
EXEC SQL INSERT INTO foo VALUES (

aram:my_indicator );
If the value of the "my_indicator" variable is 0, then the value of
"param" is inserted. If the value of "my_indicator" is -1, then NULL is
inserted.
In the ASA 9.x online docs, see:
ASA Programming Guide
Embedded SQL Programming
Using host variables
- Indicator variables
or
http://tinyurl.com/4veky [shortcut to docs on ianywhere.com]
Hope this helps,
greg.fenton
--
Greg Fenton
Consultant, Solution Services, iAnywhere Solutions
--------
Visit the iAnywhere Solutions Developer Community
Whitepapers, TechDocs, Downloads
http://www.ianywhere.com/developer/