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

python3 version require SchemaObject>=0.5.7 not work #71

Open
earl86 opened this issue Nov 4, 2024 · 1 comment
Open

python3 version require SchemaObject>=0.5.7 not work #71

earl86 opened this issue Nov 4, 2024 · 1 comment

Comments

@earl86
Copy link

earl86 commented Nov 4, 2024

the current version shoud be: Schema-Object-0.5.11 or SchemaObject>=0.5.10

@earl86
Copy link
Author

earl86 commented Nov 4, 2024

SchemaObject>=0.5.10 works well. when use SchemaObject 0.5.7-0.5.9 should fix the bug by yourself.
there is some bug fix.
schemaobject/connection.py
+7
-1
Original file line number Diff line number Diff line change
@@ -69,7 +69,13 @@ def version(self):

def execute(self, sql, values=None):
    cursor = self._db.cursor()
    #if isinstance(values, (basestring, unicode)):  #NameError: name 'basestring' is not defined
    try:
        basestring
    except NameError:
        basestring = str
    if isinstance(values, (str, basestring)):
        values = (values,)
    cursor.execute(sql, values)

@earl86 earl86 changed the title require SchemaObject>=0.5.7 not work python3 version require SchemaObject>=0.5.7 not work Nov 4, 2024
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