486{
487
488
489
490#line 395 "ifxquery.ec"
491#line 396 "ifxquery.ec"
492 char *connID = conn()->connectionID();
495
496
497
498#line 399 "ifxquery.ec"
499
500
501
502
503
504#line 401 "ifxquery.ec"
505 {
506#line 401 "ifxquery.ec"
507 sqli_connect_set(0, connID, 0);
508#line 401 "ifxquery.ec"
509 }
510 if (SQLCODE < 0) {
512 return false;
513 }
515
516
519
520
521
522#line 411 "ifxquery.ec"
523 {
524#line 411 "ifxquery.ec"
525 sqli_curs_decl_dynm(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, cursorID, 0), cursorID, sqli_curs_locate(ESQLINTVERSION, stmtID, 1), 0, 0);
526#line 411 "ifxquery.ec"
527 }
528 if (SQLCODE < 0) {
530 return false;
531 }
533 }
534
536
537
538
539#line 420 "ifxquery.ec"
540 {
541#line 420 "ifxquery.ec"
542 sqli_curs_close(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, cursorID, 256));
543#line 420 "ifxquery.ec"
544 }
545 if (SQLCODE < 0) {
547 return false;
548 }
550 }
551
553
554
555
556#line 429 "ifxquery.ec"
557 {
558#line 429 "ifxquery.ec"
559 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, cursorID, 256),
__inSQLDA, (
char *)0, (
struct value *)0, 1, 0);
560#line 429 "ifxquery.ec"
561 }
562 else
563
564
565
566#line 431 "ifxquery.ec"
567 {
568#line 431 "ifxquery.ec"
569 sqli_curs_open(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, cursorID, 256), (ifx_sqlda_t *)0, (char *)0, (struct value *)0, 0, 0);
570#line 431 "ifxquery.ec"
571 }
572
573 if (SQLCODE < 0) {
575 return false;
576 }
577
580 }
581 else {
582#if __USE_STMT_TYPE
583
584
586
587
588
589
590#line 446 "ifxquery.ec"
591 {
592#line 447 "ifxquery.ec"
593 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, stmtID, 257),
__inSQLDA, (
char *)0, (
struct value *)0,
__outSQLDA, (
char *)0, (
struct value *)0, 0);
594#line 447 "ifxquery.ec"
595 }
597
598
599
600#line 449 "ifxquery.ec"
601 {
602#line 449 "ifxquery.ec"
603 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, stmtID, 257), (ifx_sqlda_t *)0, (
char *)0, (
struct value *)0,
__outSQLDA, (
char *)0, (
struct value *)0, 0);
604#line 449 "ifxquery.ec"
605 }
606 else
607#endif
609
610
611
612#line 453 "ifxquery.ec"
613 {
614#line 453 "ifxquery.ec"
615 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, stmtID, 257),
__inSQLDA, (
char *)0, (
struct value *)0, (ifx_sqlda_t *)0, (
char *)0, (
struct value *)0, 0);
616#line 453 "ifxquery.ec"
617 }
618 else
619
620
621
622#line 455 "ifxquery.ec"
623 {
624#line 455 "ifxquery.ec"
625 sqli_exec(ESQLINTVERSION, sqli_curs_locate(ESQLINTVERSION, stmtID, 257), (ifx_sqlda_t *)0, (char *)0, (struct value *)0, (ifx_sqlda_t *)0, (char *)0, (struct value *)0, 0);
626#line 455 "ifxquery.ec"
627 }
628
629 if (SQLCODE < 0) {
631 Query::__affectedRows = -1;
632 return false;
633 }
634
635#if __USE_STMT_TYPE
636 if (__stmtType == SQ_EXECPROC) {
637 for(size_t i = 0; i < Query::__fieldCount; i++) {
639 return false;
640 }
641 }
642 else {
643
644 Query::__affectedRows = sqlca.sqlerrd[2];
645 }
646#else
647
648 Query::__affectedRows = sqlca.sqlerrd[2];
649#endif
650 }
651
652 for(size_t i = 0; i < Query::__paramCount; i++) {
653 if (!(
__params[i].onAfterExecute()))
654 return false;
655 }
656
657 return true;
658}
#define __SET_ERROR_HANDLE(_SQLCODE)
#define __DCL_ASSERT(expr)