Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.5 (maybe not only 3.5) issue with sql request strings #1

Open
gnipi opened this issue May 7, 2016 · 0 comments
Open

python 3.5 (maybe not only 3.5) issue with sql request strings #1

gnipi opened this issue May 7, 2016 · 0 comments

Comments

@gnipi
Copy link

gnipi commented May 7, 2016

`

Because of string encoding (mixing bytes and str) need to patch fbcore.py:
`
@@ -783,7 +783,7 @@ def create_database(sql='', sql_dialect=3, dsn='', user=None, password=None,
else:
dsn = database

  •    dsn = b(dsn,_FS_ENCODING)
    
  •    #dsn = b(dsn,_FS_ENCODING)
    
     # Parameter checks
    

@@ -801,7 +801,9 @@ def create_database(sql='', sql_dialect=3, dsn='', user=None, password=None,
trans_handle = isc_tr_handle(0)
db_handle = isc_db_handle(0)

xsqlda = xsqlda_factory(1)

  • sql = b(sql,_FS_ENCODING)
  • For yet unknown reason, the isc_dsql_execute_immediate segfaults when

    NULL (None) is passed as XSQLDA, so we provide one here

    api.isc_dsql_execute_immediate(isc_status, db_handle, trans_handle,
    `

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant