Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #458 (closed defect: invalid)

Opened 13 years ago

Last modified 11 years ago

[PATCH] tg-admin sql record command is broken

Reported by: Max <ischenko@…> Owned by: anonymous
Priority: high Milestone: 0.9
Component: SQLObject Version:
Severity: normal Keywords: sqlobject tg-admin
Cc:

Description

D:\Projects\Spaca>tg-admin sql record
Using database URI mysql://xxx:xxx@localhost:3306/abc
Creating version 2006-01-25
Traceback (most recent call last):
  File "C:\Python24\Scripts\tg-admin-script.py", line 7, in ?
    sys.exit(
  File "d:\projects\3rd-party\turbogears\turbogears\command\base.py", line 269, in main
    command.run()
  File "d:\projects\3rd-party\turbogears\turbogears\command\base.py", line 129, in run
    command.the_runner.run(sys.argv)
  File "c:\python24\lib\site-packages\sqlobject-0.7.1dev_r1534-py2.4.egg\sqlobject\manager\command.py", line 102, in run
    runner.run()
  File "c:\python24\lib\site-packages\sqlobject-0.7.1dev_r1534-py2.4.egg\sqlobject\manager\command.py", line 233, in run
    self.command()
  File "c:\python24\lib\site-packages\sqlobject-0.7.1dev_r1534-py2.4.egg\sqlobject\manager\command.py", line 839, in command
    create, constraints = cls.createTableSQL()
ValueError: too many values to unpack

Using latest TG and sqlobject 0.7.1dev-r1534

Attachments

sqlo.patch Download (727 bytes) - added by joeysmith@… 13 years ago.
Patch submitted to SQLObject team

Change History

comment:1 Changed 13 years ago by anonymous

Submitted to SQLObject bug tracker,  issue page

Changed 13 years ago by joeysmith@…

Patch submitted to SQLObject team

comment:2 Changed 13 years ago by joeysmith@…

  • Status changed from new to assigned

Following email and attachment sent to SQLObject team:

TG is currently including the branched tree  http://svn.colorstudy.com/SQLObject/branches/0.7-bugfix in their SVN. This branch contains a bug in dbconnection.py in the DBAPI.createTableSQL() method...it doesn't return as many values as main.py expects it to.

Attached is a patch for this branch. I simply brought the method over as it exists in HEAD. Could someone who has rights please review and apply this patch?

As this is an upstream bug, I suggest we mark this as 'invalid'.

comment:3 Changed 13 years ago by anonymous

  • Summary changed from tg-admin sql record command is broken to [PATCH] tg-admin sql record command is broken

Updated summary to include [PATCH].

comment:4 Changed 13 years ago by kevin

  • Status changed from assigned to closed
  • Resolution set to invalid

We do care about this, but I will indeed mark it as invalid for us.

comment:5 Changed 13 years ago by jorge.vargas

please DONT use this

it was reject by SQLObject team

 http://sourceforge.net/mailarchive/message.php?msg_id=14965099

comment:6 Changed 13 years ago by jorge.vargas

I'm sorry I posted the wrong link, I wanted the reply

 http://sourceforge.net/mailarchive/message.php?msg_id=14965120

Note: See TracTickets for help on using tickets.