Skip to content

Commit d1723b6

Browse files
committed
Add FB_API_VER guard
1 parent a8cf7a6 commit d1723b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

interbase.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,11 +885,13 @@ int _php_ibase_attach_db(char **args, size_t *len, zend_long *largs, isc_db_hand
885885
buf_len -= dpb_len;
886886
}
887887

888+
#if FB_API_VER >= 40
888889
// Do not handle directly INT128 or DECFLOAT, convert to VARCHAR at server instead
889890
const char *compat = "int128 to varchar;decfloat to varchar";
890891
dpb_len = slprintf(dpb, buf_len, "%c%c%s", isc_dpb_set_bind, strlen(compat), compat);
891892
dpb += dpb_len;
892893
buf_len -= dpb_len;
894+
#endif
893895

894896
if (isc_attach_database(IB_STATUS, (short)len[DB], args[DB], db, (short)(dpb-dpb_buffer), dpb_buffer)) {
895897
_php_ibase_error();

0 commit comments

Comments
 (0)