Skip to content

Compile error #118

@tht2005

Description

@tht2005
In file included from catalog.c:93:
catalog.c: In function 'SQLGetTypeInfo_Internal':
catalog.c:232:49: error: too many arguments to function 'hproc'; expected 0, have 2
  232 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
  233 |         en_GetTypeInfo, (
  234 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:232:7: note: in expansion of macro 'CALL_UDRIVER'
  232 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLSpecialColumns_Internal':
catalog.c:388:49: error: too many arguments to function 'hproc'; expected 0, have 10
  388 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
  389 |         en_SpecialColumns, (
  390 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:388:7: note: in expansion of macro 'CALL_UDRIVER'
  388 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLStatistics_Internal':
catalog.c:636:49: error: too many arguments to function 'hproc'; expected 0, have 9
  636 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
  637 |         en_Statistics, (
  638 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:636:7: note: in expansion of macro 'CALL_UDRIVER'
  636 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLTables_Internal':
catalog.c:864:49: error: too many arguments to function 'hproc'; expected 0, have 9
  864 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
  865 |         en_Tables, (
  866 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:864:7: note: in expansion of macro 'CALL_UDRIVER'
  864 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLColumnPrivileges_Internal':
catalog.c:1084:49: error: too many arguments to function 'hproc'; expected 0, have 9
 1084 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
 1085 |         en_ColumnPrivileges, (
 1086 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:1084:7: note: in expansion of macro 'CALL_UDRIVER'
 1084 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLColumns_Internal':
catalog.c:1300:49: error: too many arguments to function 'hproc'; expected 0, have 9
 1300 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
 1301 |         en_Columns, (
 1302 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:1300:7: note: in expansion of macro 'CALL_UDRIVER'
 1300 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLForeignKeys_Internal':
catalog.c:1533:49: error: too many arguments to function 'hproc'; expected 0, have 13
 1533 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
 1534 |         en_ForeignKeys, (
 1535 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:1533:7: note: in expansion of macro 'CALL_UDRIVER'
 1533 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLPrimaryKeys_Internal':
catalog.c:1779:49: error: too many arguments to function 'hproc'; expected 0, have 7
 1779 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
 1780 |         en_PrimaryKeys, (
 1781 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:1779:7: note: in expansion of macro 'CALL_UDRIVER'
 1779 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLProcedureColumns_Internal':
catalog.c:1981:49: error: too many arguments to function 'hproc'; expected 0, have 9
 1981 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
 1982 |         en_ProcedureColumns, (
 1983 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:1981:7: note: in expansion of macro 'CALL_UDRIVER'
 1981 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLProcedures_Internal':
catalog.c:2193:49: error: too many arguments to function 'hproc'; expected 0, have 7
 2193 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
 2194 |         en_Procedures, (
 2195 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:2193:7: note: in expansion of macro 'CALL_UDRIVER'
 2193 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
catalog.c: In function 'SQLTablePrivileges_Internal':
catalog.c:2388:49: error: too many arguments to function 'hproc'; expected 0, have 7
 2388 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |                                                 ^~~~~
 2389 |         en_TablePrivileges, (
 2390 |            pstmt->dhstmt,
      |            ~~~~~~~~~~~~~                         
itrace.h:113:15: note: in definition of macro 'CALL_DRIVER'
  113 |         ret = proc plist; \
      |               ^~~~
catalog.c:2388:7: note: in expansion of macro 'CALL_UDRIVER'
 2388 |       CALL_UDRIVER(pstmt->hdbc, pstmt, retcode, hproc, penv->unicode_driver,
      |       ^~~~~~~~~~~~
make[2]: *** [Makefile:608: catalog.lo] Error 1
make[1]: *** [Makefile:627: all-recursive] Error 1
make: *** [Makefile:610: all-recursive] Error 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions