Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1145)

Issue 1659042: Patch to provide support for sqlalchemy 0.6.x

Can't Edit
Can't Publish+Mail
Start Review
Created:
3 years, 10 months ago by jazle
Modified:
2 years, 5 months ago
Reviewers:
ivanelsonnunes, rahul <rahul.priyadarshi, abhigyan agrawal1 <abhigyan_agrawal, julien.chevalier
Base URL:
http://ibm-db.googlecode.com/svn/trunk
Visibility:
Public.

Description

this is a patch for ibm_db_sa to support latest sqlalchemy version 0.6.x

Patch Set 1 : Please ignore the patch set 1, i forgot to add base.py #

Unified diffs Side-by-side diffs Delta from patch set Stats (+942 lines, -789 lines) Patch
ibm_db_sa/__init__.py View 1 chunk +30 lines, -1 line 0 comments Download
ibm_db_sa/base.py View 1 chunk +620 lines, -0 lines 0 comments Download
ibm_db_sa/ibm_db_sa.py View 1 chunk +288 lines, -784 lines 0 comments Download
setup.py View 3 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 5
jazle
3 years, 10 months ago #1
jazle
Please ignore the patch set 1, i forgot to add base.py.
3 years, 10 months ago #2
jazle
Please ignore the patch set 1, i forgot to add base.py
3 years, 10 months ago #3
ivanelsonnunes
On 2010/06/12 03:46:09, jazle wrote: > Please ignore the patch set 1, i forgot to ...
2 years, 7 months ago #4
julien.chevalier
2 years, 5 months ago #5
Dear Jazle, thanks for the patch. I get an error when trying to provide a schema
name
at table mapping time. Here is the track back. Any help appreciated. Regards

Julien

Traceback (most recent call last):
  File "ibm_db_sa_check.py", line 17, in <module>
    class Enseigne(Base):
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/ext/declarative.py", line
1165, in __init__
    _as_declarative(cls, classname, cls.__dict__)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/ext/declarative.py", line
1064, in _as_declarative
    **table_kw)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/schema.py", line 265, in
__new__
    table._init(name, metadata, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/schema.py", line 324, in
_init
    self, include_columns
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2264,
in run_callable
    return conn.run_callable(callable_, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 1894,
in run_callable
    return callable_(self, *args, **kwargs)
  File
"/usr/local/lib/python2.7/dist-packages/ibm_db_sa-0.2.0-py2.7.egg/ibm_db_sa/ibm_db_sa.py",
line 218, in reflecttable
    col_args.append(schema.PassiveDefault(sql.text(def_value)))
NameError: global name 'schema' is not defined
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld 1278:e6ce13d99bf5