OpenDBX

for Project:

Open Database abstraction layer

Register as a new user

Task #44 — Undefined dbpoll function called with freetds 1.3.3

Attached to Project — OpenDBX
Opened by Florian Weimer (fweimer) - Tuesday, 21 Feb 2023, 11:56am
Bug Report Low
Backend Normal
Unconfirmed 1.4.x
No-one Undecided
All 0% complete
With freetds 1.3.3, dbpoll is just a stub that always returns success. Such stub functions are not declared in <sybdb.h> if DBLIB_UNIMPLEMENTED is not defined.

However, backends/mssql/mssql_basic.c calls this function unconditionally. This still works if the compiler supports implicit function declarations, but future compilers won't. (Implicit function declarations are no longer part of C as of C99.)

Comments (0) | Attachments (1) | Related Tasks (0/0) | Notifications (1) | Reminders (0) | History |

Date User Event
Tuesday, 21 Feb 2023, 11:56am Florian Weimer (fweimer) Task opened
Tuesday, 21 Feb 2023, 11:56am Florian Weimer (fweimer) User added to notification list: Florian Weimer (fweimer)
Tuesday, 21 Feb 2023, 12:26pm Florian Weimer (fweimer) Attachment added: opendbx-c99.patch (Call dbpoll only if it is declared)