Postgresql ODBC driver not found

From: Pierre Couderc <pierre(at)couderc(dot)eu>
To: pgsql-odbc(at)postgresql(dot)org
Subject: Postgresql ODBC driver not found
Date: 2021-09-17 13:14:58
Message-ID: c770b6a9-5823-88a7-439d-33731fee0944@couderc.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

It is here I see it/them with:

odbcinst -q -d

but not with :

  SQLHENV env;
  SQLCHAR driver[256];
  SQLCHAR attr[256];
  SQLSMALLINT driver_ret;
  SQLSMALLINT attr_ret;
  SQLUSMALLINT direction;
  SQLRETURN ret;
  SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &env);
  SQLSetEnvAttr(env, SQL_ATTR_ODBC_VERSION, (void *) SQL_OV_ODBC3, 0);

  direction = SQL_FETCH_FIRST;
  while(SQL_SUCCEEDED(ret = SQLDrivers(env, direction,
                                       driver, sizeof(driver), &driver_ret,
                                       attr, sizeof(attr), &attr_ret))) {
    direction = SQL_FETCH_NEXT;
    printf("%s - %s\n", driver, attr);
    if (ret == SQL_SUCCESS_WITH_INFO) printf("\tdata truncation\n");
  }

What do I miss...?

(under debian bulllseye linked with libodbc)

Thanks in advance

PC

Browse pgsql-odbc by date

  From Date Subject
Next Message Hiroshi Saito 2021-09-22 10:48:54 psqlODBC 13.02.0000 Released
Previous Message Inoue,Hiroshi 2021-09-17 12:16:05 Re: Problem on calling procedures with ADODB