Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dbdimp.c #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions dbdimp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1400,17 +1400,19 @@ AV *dbd_st_fetch(SV *sth, imp_sth_t *imp_sth)
switch (dtype)
{
#ifdef SQL_BOOLEAN
case SQL_BOOLEAN:
FB_BOOLEAN b = (*((FB_BOOLEAN *) (var->sqldata)));
case SQL_BOOLEAN:
{
FB_BOOLEAN b = (*((FB_BOOLEAN *) (var->sqldata)));
#ifdef sv_set_bool
sv_set_bool(sv, b == FB_TRUE);
sv_set_bool(sv, b == FB_TRUE);
#else
#ifdef sv_setbool
sv_setbool(sv, b == FB_TRUE);
sv_setbool(sv, b == FB_TRUE);
#else
sv_setiv(sv, (b == FB_TRUE) ? 1 : 0);
sv_setiv(sv, (b == FB_TRUE) ? 1 : 0);
#endif
#endif
}
break;
#endif

Expand Down