#9975: initial data parsing error?
--------------------------------------------+-------------------------------
 Reporter:  antje.ga...@taconicartemis.com  |       Owner:  nobody    
   Status:  new                             |   Milestone:            
Component:  Database layer (models, ORM)    |     Version:  1.0-beta-1
 Keywords:  syncdb, initial data            |       Stage:  Unreviewed
Has_patch:  0                               |  
--------------------------------------------+-------------------------------
 When I run syncdb with an SQL statement like this in e.g. foo/sql/bar.sql:

 INSERT INTO foo_bar (id, sequence)
 VALUES (1, 'ATTG--TTC');

 it quits with the message:
 Failed to install custom SQL for foo.Bar model: unterminated quoted string
 at or near "'ATTG;" at character ***
 (*** is the character number... I replaced and shortened my example here,
 so the original character # will not suit)

 Importing the bar.sql from postgres client itself works... that's why I
 think, the parser is interpreting everthing after '--' as comment... even
 within strings

 Has anybody already a bugfix yet? I couldn't find it here, but maybe I
 just didn't search for the right words.

 Thanks,
 Antje

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9975>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to