477{
478
479
480
481#line 386 "ifxquery.ec"
482#line 387 "ifxquery.ec"
483 char *pszConnectionID = conn()->connectionID();
486
487
488
489#line 390 "ifxquery.ec"
490
491
492
493
494
495#line 392 "ifxquery.ec"
496 {
497#line 392 "ifxquery.ec"
498 sqli_connect_set(0, pszConnectionID, 0);
499#line 392 "ifxquery.ec"
500 }
501 if (SQLCODE < 0) {
503 return false;
504 }
506
507
510
511
512
513#line 402 "ifxquery.ec"
514 {
515#line 402 "ifxquery.ec"
516 sqli_curs_decl_dynm(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszCursorID, 0), pszCursorID, sqli_curs_locate(ESQLINTVERSION, pszStatementID, 1), 0, 0);
517#line 402 "ifxquery.ec"
518 }
519 if (SQLCODE < 0) {
521 return false;
522 }
524 }
525
527
528
529
530#line 411 "ifxquery.ec"
531 {
532#line 411 "ifxquery.ec"
533 sqli_curs_close(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszCursorID, 256));
534#line 411 "ifxquery.ec"
535 }
536 if (SQLCODE < 0) {
538 return false;
539 }
541 }
542
544
545
546
547#line 420 "ifxquery.ec"
548 {
549#line 420 "ifxquery.ec"
550 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszCursorID, 256),
__inSQLDA, (
char *)0, (
struct value *)0, 1, 0);
551#line 420 "ifxquery.ec"
552 }
553 else
554
555
556
557#line 422 "ifxquery.ec"
558 {
559#line 422 "ifxquery.ec"
560 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszCursorID, 256), (ifx_sqlda_t *)0, (char *)0, (struct value *)0, 0, 0);
561#line 422 "ifxquery.ec"
562 }
563
564 if (SQLCODE < 0) {
566 return false;
567 }
568
571 }
572 else {
573#if __USE_STMT_TYPE
574
575
577
578
579
580
581#line 437 "ifxquery.ec"
582 {
583#line 438 "ifxquery.ec"
584 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszStatementID, 257),
__inSQLDA, (
char *)0, (
struct value *)0,
__outSQLDA, (
char *)0, (
struct value *)0, 0);
585#line 438 "ifxquery.ec"
586 }
588
589
590
591#line 440 "ifxquery.ec"
592 {
593#line 440 "ifxquery.ec"
594 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszStatementID, 257), (ifx_sqlda_t *)0, (
char *)0, (
struct value *)0,
__outSQLDA, (
char *)0, (
struct value *)0, 0);
595#line 440 "ifxquery.ec"
596 }
597 else
598#endif
600
601
602
603#line 444 "ifxquery.ec"
604 {
605#line 444 "ifxquery.ec"
606 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszStatementID, 257),
__inSQLDA, (
char *)0, (
struct value *)0, (ifx_sqlda_t *)0, (
char *)0, (
struct value *)0, 0);
607#line 444 "ifxquery.ec"
608 }
609 else
610
611
612
613#line 446 "ifxquery.ec"
614 {
615#line 446 "ifxquery.ec"
616 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, pszStatementID, 257), (ifx_sqlda_t *)0, (char *)0, (struct value *)0, (ifx_sqlda_t *)0, (char *)0, (struct value *)0, 0);
617#line 446 "ifxquery.ec"
618 }
619
620 if (SQLCODE < 0) {
622 Query::__affectedRows = -1;
623 return false;
624 }
625
626#if __USE_STMT_TYPE
627 if (__stmtType == SQ_EXECPROC) {
628 for(size_t i = 0; i < Query::__fieldCount; i++) {
630 return false;
631 }
632 }
633 else {
634
635 Query::__affectedRows = sqlca.sqlerrd[2];
636 }
637#else
638
639 Query::__affectedRows = sqlca.sqlerrd[2];
640#endif
641 }
642
643 for(size_t i = 0; i < Query::__paramCount; i++) {
644 if (!(
__params[i].onAfterExecute()))
645 return false;
646 }
647
648 return true;
649}
#define __SET_ERROR_SQLCODE(SQLCODE)
#define __DCL_ASSERT(expr)