Skip to content

Commit d7fbc30

Browse files
committed
Merge pull request #171
Fix #162 and #163
2 parents ef11de2 + 6089f84 commit d7fbc30

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dbdimp.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4802,6 +4802,7 @@ static int mariadb_st_describe(SV* sth, imp_sth_t* imp_sth)
48024802
case MYSQL_TYPE_NULL:
48034803
buffer->buffer_length= 0;
48044804
buffer->buffer= NULL;
4805+
break;
48054806

48064807
case MYSQL_TYPE_TINY:
48074808
buffer->buffer_length= sizeof(fbh->numeric_val.tval);
@@ -5378,8 +5379,10 @@ int mariadb_st_finish(SV* sth, imp_sth_t* imp_sth) {
53785379
D_imp_xxh(sth);
53795380
D_imp_dbh_from_sth;
53805381

5381-
if(imp_dbh->async_query_in_flight) {
5382-
mariadb_db_async_result(sth, &imp_sth->result);
5382+
if (imp_dbh->async_query_in_flight)
5383+
{
5384+
if (mariadb_db_async_result(sth, &imp_sth->result) == (my_ulonglong)-1)
5385+
return 0;
53835386
}
53845387

53855388
if (DBIc_TRACE_LEVEL(imp_xxh) >= 2)

0 commit comments

Comments
 (0)