Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 825831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:19:02+00:00 2026-05-15T03:19:02+00:00

My company uses Vertica . We have Python applications that connect to it with

  • 0

My company uses Vertica. We have Python applications that connect to it with pyodbc. I do most of my development on a Mac (Snow Leopard) and unfortunately Vertica has not released ODBC drivers for Mac. They do have JDBC drivers though. I don’t think developing in Jython is a good compromise. Is there any way to use JDBC drivers with an ODBC application? Some kind of ODBC connector?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:19:02+00:00Added an answer on May 15, 2026 at 3:19 am

    edit: update for vertica 5/6 can be found here https://github.com/serbaut/psycopg2

    Here is a patch to make psycopg2 2.2.1 work with vertica 4.0. No ODBC needed.

    diff --git a/psycopg/connection_int.c b/psycopg/connection_int.c
    index 902fdbb..b07eee8 100644
    --- a/psycopg/connection_int.c
    +++ b/psycopg/connection_int.c
    @@ -280,6 +280,10 @@ conn_setup(connectionObject *self, PGconn *pgconn)
             pgres = psyco_exec_green(self, psyco_datestyle);
         }
    
    +    if (self->server_version == 0 && self->protocol == 3) { /* vertica */
    +      self->encoding = strdup("UTF8");
    +      self->isolation_level = 0;
    +    } else {
         if (pgres == NULL || PQresultStatus(pgres) != PGRES_COMMAND_OK ) {
             PyErr_SetString(OperationalError, "can't set datestyle to ISO");
             IFCLEARPGRES(pgres);
    @@ -335,7 +339,7 @@ conn_setup(connectionObject *self, PGconn *pgconn)
             return -1;
         }
         self->isolation_level = conn_get_isolation_level(pgres);
    -
    +    }
         Py_UNBLOCK_THREADS;
         pthread_mutex_unlock(&self->lock);
         Py_END_ALLOW_THREADS;
    diff --git a/psycopg/typecast_builtins.c b/psycopg/typecast_builtins.c
    index e8e5a1a..45b9dbc 100644
    --- a/psycopg/typecast_builtins.c
    +++ b/psycopg/typecast_builtins.c
    @@ -1,15 +1,15 @@
     static long int typecast_NUMBER_types[] = {20, 23, 21, 701, 700, 1700, 0};
    -static long int typecast_LONGINTEGER_types[] = {20, 0};
    +static long int typecast_LONGINTEGER_types[] = {6, 20, 0};
     static long int typecast_INTEGER_types[] = {23, 21, 0};
    -static long int typecast_FLOAT_types[] = {701, 700, 0};
    -static long int typecast_DECIMAL_types[] = {1700, 0};
    -static long int typecast_UNICODE_types[] = {19, 18, 25, 1042, 1043, 0};
    +static long int typecast_FLOAT_types[] = {7, 701, 700, 0};
    +static long int typecast_DECIMAL_types[] = {16, 1700, 0};
    +static long int typecast_UNICODE_types[] = {8, 9, 19, 18, 25, 1042, 1043, 0};
     static long int typecast_STRING_types[] = {19, 18, 25, 1042, 1043, 0};
    -static long int typecast_BOOLEAN_types[] = {16, 0};
    -static long int typecast_DATETIME_types[] = {1114, 1184, 704, 1186, 0};
    -static long int typecast_TIME_types[] = {1083, 1266, 0};
    -static long int typecast_DATE_types[] = {1082, 0};
    -static long int typecast_INTERVAL_types[] = {704, 1186, 0};
    +static long int typecast_BOOLEAN_types[] = {5, 0};
    +static long int typecast_DATETIME_types[] = {12, 13, 1114, 1184, 704, 1186, 0};
    +static long int typecast_TIME_types[] = {11, 15, 1083, 1266, 0};
    +static long int typecast_DATE_types[] = {10, 1082, 0};
    +static long int typecast_INTERVAL_types[] = {14, 704, 1186, 0};
     static long int typecast_BINARY_types[] = {17, 0};
     static long int typecast_ROWID_types[] = {26, 0};
     static long int typecast_LONGINTEGERARRAY_types[] = {1016, 0};
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.