Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1543 closed defect (fixed)

[patch] syncdb bug with importing initial sql data

Reported by: Nebojsa Djordjevic <nesh at studioquattro dot co dot yu> Owned by: adrian
Component: Tools Version: magic-removal
Severity: normal Keywords:
Cc: nesh@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

If you have a multiline SQL data for initial data import you can have You can only execute one statement at a time error when using syncdb command.

Attached patch fixes this and also add SQL statement in which error has occurred to error report.

Attachments (1)

management.diff (1.2 KB) - added by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu> 9 years ago.

Download all attachments as: .zip

Change History (6)

Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

comment:1 Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

  • Cc nesh@… added

comment:2 Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

Also, I think that it's worth to note in the documentation for syncdb that you must quote a bare % inside SQL statements (as a %%), because failing to do that will produce a not enough arguments for format string error.

comment:3 Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

  • Component changed from Core framework to Tools

NOTE: this patch requires that all of the SQL statements are in one line only!!

comment:4 Changed 9 years ago by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>

  • Summary changed from [pathc] syncdb bug with importing initial sql data to [patch] syncdb bug with importing initial sql data

comment:5 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [2985].

Note: See TracTickets for help on using tickets.
Back to Top