Default Parameters set to null by default
Posted: Tue 25 Feb 2014 10:55
Hello.
I'm migrating a project from an old Delphi to the new Delphi XE5 and we've taking advantage of this to abandon BDE and replace all those components using ODAC.
We didn't had any big problem until we arrived to the test phase. Then, we realized that the ODAC storeprocs, by default, sets to Null all parameters (unless you declare a default value in the storeproc param manually). That was messing with the program because we had some procedures declared with a DEFAULT 'N' (i.e.).
I know this is not a problem because you can manually set the default value manually in the storeproc param definition, but the program we're migrating is really big and if there's any way to get the PL/SQL procedure's param default value automatically we could really save a lot of developing time.
So that's my question. Is there any way to get the PL/SQL procedure's param default value automatically? or... there's any way to set any property of the storeproc to not set to null any undefined parameter?
Many thanks for your help.
I'm migrating a project from an old Delphi to the new Delphi XE5 and we've taking advantage of this to abandon BDE and replace all those components using ODAC.
We didn't had any big problem until we arrived to the test phase. Then, we realized that the ODAC storeprocs, by default, sets to Null all parameters (unless you declare a default value in the storeproc param manually). That was messing with the program because we had some procedures declared with a DEFAULT 'N' (i.e.).
I know this is not a problem because you can manually set the default value manually in the storeproc param definition, but the program we're migrating is really big and if there's any way to get the PL/SQL procedure's param default value automatically we could really save a lot of developing time.
So that's my question. Is there any way to get the PL/SQL procedure's param default value automatically? or... there's any way to set any property of the storeproc to not set to null any undefined parameter?
Many thanks for your help.