C0105 Compiler Error
Message text
Dynamic SQL command must reference DynamicDescriptionArea
object.
Explanation
PowerBuilder has four dynamic SQL formats. You must reference a
DynamicDescriptionArea object in some dynamic SQL commands. For more
information, see the section called “SQL Statements” in PowerScript Reference for more information.
The last three statements in this example generate C0105 because
they reference a DynamicStagingArea object (sqlsa) or other variables
instead of a DynamicDescriptionArea object (sqlda):
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
int num int numarr[] throwable t declare proc procedure for webchanged; declare dynproc dynamic procedure for sqlsa; declare dyncursor dynamic cursor for sqlsa; fetch proc using descriptor sqlda; execute dynamic dynproc using descriptor sqlda; open dynamic dyncursor using descriptor sqlda; declare proc1 procedure for webchanged; declare dynproc1 dynamic procedure for sqlsa; declare dyncursor1 dynamic cursor for sqlsa; // The following statements generate C0105 fetch proc using descriptor num; execute dynamic dynproc using descriptor numarr; open dynamic dyncursor using descriptor t; |
See Also
Using dynamic SQL in the section called “Using
dynamic SQL” in PowerScript Reference.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest