line |
true |
false |
branch |
5
|
0 |
0 |
DBISTATE_DECLARE; |
|
0 |
0 |
DBISTATE_DECLARE; |
38
|
0 |
9 |
if (DBIS->debug >= 3) { |
51
|
0 |
25 |
if (DBIS->debug >= 3) { |
56
|
0 |
25 |
if ((imp_dbh->db = sqlite_open(dbname, 0, &errmsg)) == NULL) { |
73
|
0 |
25 |
if ((retval = sqlite_exec(imp_dbh->db, "PRAGMA empty_result_callbacks = ON", |
83
|
0 |
25 |
if ((retval = sqlite_exec(imp_dbh->db, "PRAGMA show_datatypes = ON", |
93
|
25 |
0 |
DBIc_ACTIVE_on(imp_dbh); |
|
25 |
0 |
DBIc_ACTIVE_on(imp_dbh); |
|
25 |
0 |
DBIc_ACTIVE_on(imp_dbh); |
|
0 |
25 |
DBIc_ACTIVE_on(imp_dbh); |
102
|
0 |
0 |
if (timeout) { |
113
|
25 |
0 |
DBIc_ACTIVE_off(imp_dbh); |
|
25 |
0 |
DBIc_ACTIVE_off(imp_dbh); |
|
18 |
7 |
DBIc_ACTIVE_off(imp_dbh); |
|
18 |
0 |
DBIc_ACTIVE_off(imp_dbh); |
|
0 |
18 |
DBIc_ACTIVE_off(imp_dbh); |
115
|
2 |
23 |
if (DBIc_is(imp_dbh, DBIcf_AutoCommit) == FALSE) { |
135
|
0 |
25 |
if (DBIc_ACTIVE(imp_dbh)) { |
148
|
4 |
1 |
if (imp_dbh->in_tran) { |
149
|
0 |
4 |
if ((retval = sqlite_exec(imp_dbh->db, "ROLLBACK TRANSACTION", |
170
|
1 |
2 |
if (DBIc_is(imp_dbh, DBIcf_AutoCommit)) { |
175
|
2 |
0 |
if (imp_dbh->in_tran) { |
176
|
0 |
2 |
if ((retval = sqlite_exec(imp_dbh->db, "COMMIT TRANSACTION", |
209
|
7239 |
149 |
while (*statement) { |
211
|
136 |
7103 |
if (*statement == '\'') { |
212
|
68 |
68 |
if (in_literal) { |
214
|
65 |
3 |
if (statement[1] && statement[1] == '\'') { |
|
0 |
65 |
if (statement[1] && statement[1] == '\'') { |
228
|
6 |
7097 |
else if (*statement == '?') { |
229
|
0 |
6 |
if (in_literal) { |
258
|
0 |
149 |
if (!DBIc_ACTIVE(imp_dbh)) { |
279
|
18 |
4 |
char *cval = SvPV(val, len); |
283
|
32881 |
22 |
while (len) { |
289
|
128 |
0 |
if (imp_dbh->handle_binary_nulls) { |
297
|
128 |
0 |
if (imp_dbh->handle_binary_nulls) { |
306
|
22 |
0 |
return SvPV_nolen(ret); |
318
|
33694 |
103 |
while (*input) { |
319
|
256 |
33438 |
switch (*input) { |
321
|
256 |
0 |
if (imp_dbh->handle_binary_nulls && input[1] && input[1] == '0') { |
|
256 |
0 |
if (imp_dbh->handle_binary_nulls && input[1] && input[1] == '0') { |
|
128 |
128 |
if (imp_dbh->handle_binary_nulls && input[1] && input[1] == '0') { |
327
|
128 |
0 |
else if (imp_dbh->handle_binary_nulls && input[1] && input[1] == '\\') { |
|
128 |
0 |
else if (imp_dbh->handle_binary_nulls && input[1] && input[1] == '\\') { |
|
128 |
0 |
else if (imp_dbh->handle_binary_nulls && input[1] && input[1] == '\\') { |
346
|
225 |
0 |
if (imp_sth->vm) |
349
|
0 |
225 |
if (imp_sth->retval == SQLITE_BUSY) { |
372
|
2 |
158 |
if (DBIc_ACTIVE(imp_sth)) { |
378
|
23 |
160 |
for (i = 0; i < num_params; i++) { |
380
|
23 |
0 |
if (value && SvOK(value)) { |
|
1 |
22 |
if (value && SvOK(value)) { |
|
1 |
0 |
if (value && SvOK(value)) { |
|
0 |
1 |
if (value && SvOK(value)) { |
391
|
23 |
0 |
if (value) { |
398
|
18 |
142 |
if ( (!DBIc_is(imp_dbh, DBIcf_AutoCommit)) && (!imp_dbh->in_tran) ) { |
|
6 |
12 |
if ( (!DBIc_is(imp_dbh, DBIcf_AutoCommit)) && (!imp_dbh->in_tran) ) { |
399
|
0 |
6 |
if ((retval = sqlite_exec(imp_dbh->db, "BEGIN TRANSACTION", |
411
|
160 |
0 |
if ((retval = sqlite_compile(imp_dbh->db, SvPV_nolen(sql), 0, &(imp_sth->vm), &errmsg) |
|
7 |
153 |
if ((retval = sqlite_compile(imp_dbh->db, SvPV_nolen(sql), 0, &(imp_sth->vm), &errmsg) |
419
|
2 |
151 |
if (_sqlite2_fetch_row(imp_sth) == SQLITE_ERROR) { |
430
|
83 |
68 |
if (imp_sth->ncols == 0) { |
437
|
68 |
0 |
DBIc_ACTIVE_on(imp_sth); |
|
68 |
0 |
DBIc_ACTIVE_on(imp_sth); |
|
68 |
0 |
DBIc_ACTIVE_on(imp_sth); |
|
0 |
68 |
DBIc_ACTIVE_on(imp_sth); |
454
|
0 |
23 |
if (is_inout) { |
458
|
2 |
21 |
if (sql_type >= SQL_NUMERIC && sql_type <= SQL_DOUBLE) { |
|
2 |
0 |
if (sql_type >= SQL_NUMERIC && sql_type <= SQL_DOUBLE) { |
459
|
0 |
2 |
return av_store(imp_sth->params, SvIV(param) - 1, newSVnv(SvNV(value))) ? 1 : 0; |
|
2 |
0 |
return av_store(imp_sth->params, SvIV(param) - 1, newSVnv(SvNV(value))) ? 1 : 0; |
462
|
21 |
0 |
return av_store(imp_sth->params, SvIV(param) - 1, SvREFCNT_inc(value)) ? 1 : 0; |
478
|
2 |
91 |
if (!DBIc_ACTIVE(imp_sth)) { /* [cpan #16451] */ |
482
|
72 |
19 |
if ((imp_sth->retval == SQLITE_DONE) || (imp_sth->retval == SQLITE_ERROR)) { |
|
0 |
72 |
if ((imp_sth->retval == SQLITE_DONE) || (imp_sth->retval == SQLITE_ERROR)) { |
487
|
56 |
16 |
if (imp_sth->nrow == -1) { |
493
|
152 |
72 |
for (i = 0; i < numFields; i++) { |
496
|
103 |
49 |
if (val != NULL) { |
499
|
6 |
97 |
if (chopBlanks) { |
501
|
7 |
1 |
while(len > 0 && val[len-1] == ' ') { |
|
2 |
5 |
while(len > 0 && val[len-1] == ' ') { |
509
|
6 |
97 |
if (chopBlanks) Safefree(val); |
527
|
68 |
0 |
if (DBIc_ACTIVE(imp_sth)) { |
529
|
68 |
0 |
DBIc_ACTIVE_off(imp_sth); |
|
68 |
0 |
DBIc_ACTIVE_off(imp_sth); |
|
68 |
0 |
DBIc_ACTIVE_off(imp_sth); |
|
68 |
0 |
DBIc_ACTIVE_off(imp_sth); |
|
0 |
68 |
DBIc_ACTIVE_off(imp_sth); |
530
|
0 |
68 |
if ((imp_sth->retval = sqlite_finalize(imp_sth->vm, &errmsg) == SQLITE_ERROR)) { |
544
|
0 |
139 |
if (DBIc_ACTIVE(imp_sth)) { |
563
|
108 |
0 |
char *key = SvPV_nolen(keysv); |
567
|
27 |
81 |
if (strEQ(key, "AutoCommit")) { |
568
|
27 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
27 |
if (SvTRUE(valuesv)) { |
|
0 |
27 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
27 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
27 |
0 |
if (SvTRUE(valuesv)) { |
|
27 |
0 |
if (SvTRUE(valuesv)) { |
|
2 |
25 |
if (SvTRUE(valuesv)) { |
|
0 |
2 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
25 |
2 |
if (SvTRUE(valuesv)) { |
570
|
24 |
1 |
if ( (!DBIc_is(imp_dbh, DBIcf_AutoCommit)) && (imp_dbh->in_tran) ) { |
|
0 |
24 |
if ( (!DBIc_is(imp_dbh, DBIcf_AutoCommit)) && (imp_dbh->in_tran) ) { |
571
|
0 |
0 |
if ((retval = sqlite_exec(imp_dbh->db, "COMMIT TRANSACTION", |
582
|
27 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
27 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
27 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
27 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
27 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
27 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
2 |
25 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
2 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
25 |
2 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
|
0 |
0 |
DBIc_set(imp_dbh, DBIcf_AutoCommit, SvTRUE(valuesv)); |
585
|
81 |
0 |
else if (strEQ(key, "sqlite_no_utf8_flag") || strEQ(key, "NoUTF8Flag")) { |
|
0 |
81 |
else if (strEQ(key, "sqlite_no_utf8_flag") || strEQ(key, "NoUTF8Flag")) { |
587
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
595
|
1 |
80 |
else if (strEQ(key, "sqlite_handle_binary_nulls")) { |
596
|
1 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
1 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
1 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
1 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
1 |
0 |
if (SvTRUE(valuesv)) { |
|
1 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
1 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
|
1 |
0 |
if (SvTRUE(valuesv)) { |
|
0 |
0 |
if (SvTRUE(valuesv)) { |
611
|
8 |
0 |
char *key = SvPV_nolen(keysv); |
613
|
8 |
0 |
if (strEQ(key, "sqlite_no_utf8_flag") || strEQ(key, "NoUTF8Flag")) { |
|
0 |
8 |
if (strEQ(key, "sqlite_no_utf8_flag") || strEQ(key, "NoUTF8Flag")) { |
616
|
2 |
6 |
if (strEQ(key, "sqlite_version")) { |
619
|
2 |
4 |
if (strEQ(key, "sqlite_encoding")) { |
628
|
8 |
0 |
char *key = SvPV_nolen(keysv); |
635
|
22 |
0 |
char *key = SvPV_nolen(keysv); |
639
|
1 |
21 |
if (!imp_sth->coldata) { |
645
|
17 |
4 |
if (strEQ(key, "NAME")) { |
649
|
89 |
17 |
while (--i >= 0) { |
654
|
0 |
89 |
if (fieldname[0] == '(' && fieldname[len-1] == ')') { |
|
0 |
0 |
if (fieldname[0] == '(' && fieldname[len-1] == ')') { |
660
|
1 |
88 |
if (dot) /* drop table name from field name */ |
665
|
0 |
4 |
else if (strEQ(key, "PRECISION")) { |
669
|
1 |
3 |
else if (strEQ(key, "TYPE")) { |
675
|
2 |
1 |
while (--i >= i_base) { |
679
|
0 |
2 |
if (dot) /* drop table name from field name */ |
684
|
0 |
3 |
else if (strEQ(key, "NULLABLE")) { |
688
|
0 |
3 |
else if (strEQ(key, "SCALE")) { |
692
|
3 |
0 |
else if (strEQ(key, "NUM_OF_FIELDS")) { |
705
|
1 |
24 |
if ( is_error ) { |
706
|
1 |
0 |
s = SvPV(result, len); |
711
|
3 |
21 |
if ( !SvOK(result) ) { |
|
3 |
0 |
if ( !SvOK(result) ) { |
|
3 |
0 |
if ( !SvOK(result) ) { |
713
|
16 |
5 |
} else if ( SvIOK(result) ) { |
714
|
16 |
0 |
IV iv = SvIV(result); |
715
|
16 |
0 |
if (iv > I32_MAX || iv < I32_MIN) { /* sqlite cannot handle 64bit int */ |
|
0 |
16 |
if (iv > I32_MAX || iv < I32_MIN) { /* sqlite cannot handle 64bit int */ |
721
|
2 |
3 |
} else if ( SvNOK(result) ) { |
722
|
2 |
0 |
sqlite_set_result_double( context, SvNV(result) ); |
724
|
3 |
0 |
s = SvPV(result, len); |
742
|
0 |
19 |
PUSHMARK(SP); |
743
|
20 |
19 |
for ( i=0; i < argc; i++ ) { |
746
|
2 |
18 |
if ( !argv[i] ) { |
752
|
0 |
20 |
XPUSHs(arg); |
761
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
19 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
19 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
19 |
0 |
if (SvTRUE(ERRSV) ) { |
|
18 |
1 |
if (SvTRUE(ERRSV) ) { |
|
18 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
18 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
1 |
18 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
762
|
1 |
0 |
sqlite2_db_set_result( context, ERRSV, 1); |
764
|
0 |
18 |
} else if ( count != 1 ) { |
770
|
0 |
0 |
for ( i=0; i < count; i++ ) { |
779
|
19 |
0 |
FREETMPS; |
795
|
0 |
11 |
if ( rv != SQLITE_OK ) |
820
|
0 |
10 |
if ( !pkg ) |
826
|
0 |
10 |
PUSHMARK(SP); |
827
|
0 |
10 |
XPUSHs( sv_2mortal( newSVsv(pkg) ) ); |
835
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
10 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
10 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
10 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
9 |
1 |
if ( SvTRUE( ERRSV ) ) { |
|
9 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
9 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
1 |
9 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
|
0 |
0 |
if ( SvTRUE( ERRSV ) ) { |
836
|
1 |
0 |
aggr_info->err = newSVpvf ("error during aggregator's new(): %s", |
837
|
1 |
0 |
SvPV_nolen (ERRSV)); |
|
1 |
0 |
SvPV_nolen (ERRSV)); |
|
0 |
0 |
SvPV_nolen (ERRSV)); |
839
|
0 |
9 |
} else if ( count != 1 ) { |
845
|
0 |
0 |
for ( i=0; i < count; i++ ) { |
850
|
8 |
1 |
if ( SvROK(aggr) ) { |
859
|
10 |
0 |
FREETMPS; |
874
|
0 |
24 |
if ( !aggr ) |
881
|
10 |
14 |
if ( !aggr->inited ) { |
885
|
16 |
8 |
if ( aggr->err || !aggr->aggr_inst ) |
|
16 |
0 |
if ( aggr->err || !aggr->aggr_inst ) |
888
|
0 |
16 |
PUSHMARK(SP); |
889
|
0 |
16 |
XPUSHs( sv_2mortal( newSVsv( aggr->aggr_inst ) )); |
890
|
6 |
16 |
for ( i=0; i < argc; i++ ) { |
893
|
2 |
4 |
if ( !argv[i] ) { |
899
|
0 |
6 |
XPUSHs(arg); |
906
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
16 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
16 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
16 |
0 |
if (SvTRUE(ERRSV) ) { |
|
15 |
1 |
if (SvTRUE(ERRSV) ) { |
|
15 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
15 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
0 |
0 |
if (SvTRUE(ERRSV) ) { |
|
1 |
15 |
if (SvTRUE(ERRSV) ) { |
907
|
1 |
0 |
aggr->err = newSVpvf( "error during aggregator's step(): %s", |
908
|
1 |
0 |
SvPV_nolen(ERRSV)); |
|
1 |
0 |
SvPV_nolen(ERRSV)); |
|
0 |
0 |
SvPV_nolen(ERRSV)); |
913
|
16 |
8 |
FREETMPS; |
929
|
0 |
16 |
if ( !aggr ) { |
938
|
13 |
3 |
if ( ! aggr->err && aggr->aggr_inst ) { |
|
7 |
6 |
if ( ! aggr->err && aggr->aggr_inst ) { |
939
|
0 |
7 |
PUSHMARK(SP); |
940
|
0 |
7 |
XPUSHs( sv_2mortal( newSVsv( aggr->aggr_inst )) ); |
946
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
7 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
7 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
7 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
6 |
1 |
if ( SvTRUE(ERRSV) ) { |
|
6 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
6 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
1 |
6 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
|
0 |
0 |
if ( SvTRUE(ERRSV) ) { |
947
|
1 |
0 |
aggr->err = newSVpvf ("error during aggregator's finalize(): %s", |
948
|
1 |
0 |
SvPV_nolen(ERRSV) ) ; |
|
1 |
0 |
SvPV_nolen(ERRSV) ) ; |
|
0 |
0 |
SvPV_nolen(ERRSV) ) ; |
950
|
0 |
6 |
} else if ( count != 1 ) { |
955
|
0 |
0 |
for ( i=0; i
|
964
|
4 |
12 |
if ( aggr->err ) { |
965
|
4 |
0 |
warn( "DBD::SQLite: error in aggregator cannot be reported to SQLite: %s", SvPV_nolen( aggr->err ) ); |
972
|
8 |
8 |
if ( aggr->aggr_inst ) { |
977
|
10 |
6 |
FREETMPS; |
996
|
0 |
6 |
if ( rv != SQLITE_OK ) |