Opened 19 years ago

Closed 18 years ago

Last modified 18 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 Holovaty
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: no UI/UX: no

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> 19 years ago.

Download all attachments as: .zip

Change History (6)

by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago

Attachment: management.diff added

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

Cc: nesh@… added

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

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 by Nebojsa Djordjevic <nesh at studioquattro dot co dot yu>, 19 years ago

Component: Core frameworkTools

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

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

Summary: [pathc] syncdb bug with importing initial sql data[patch] syncdb bug with importing initial sql data

comment:5 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

Fixed in [2985].

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