Menu

#348 confusion of comments in uploaded sql script

GIT
closed-fixed
5
2010-08-26
2009-02-08
woodz
No

Hi,
if I execute a sql script by attaching it's name from the file browser dialog to the upload box, I get a confusion with rows containig text fields like this '-----'. But in the iput area I get no confusion. Suppose the following two lines:
INSERT INTO positions VALUES (129, 'ICT Offline Vakuum Adapter UTCU2', '----', 2, true, false, '2009-02-27', false, 1, 1);
INSERT INTO positions VALUES (131, 'fahrbarer Schutzubehälter für Trafo', '----', 6, false, false, '2009-01-22', false, 4, 1);

The execution from upload script fails with "syntax error at or near 131, 'fahrbarer Schutzubehälter...
As mentioned, in the sql input area these two lines work.

If I correct the lines to:
INSERT INTO positions VALUES (129, 'ICT Offline Vakuum Adapter UTCU2', '', 2, true, false, '2009-02-27', false, 1, 1);
INSERT INTO positions VALUES (131, 'fahrbarer Schutzubehälter für Trafo', '', 6, false, false, '2009-01-22', false, 4, 1);

they also work in an uploaded sql script. It seems that ppa means there are suddently occuring comments in a row and then refuses with the mentioned error. An escaping of special characters problem?
Another question is, why doesn't ppa fail at the first line (if needs must fail), since the first line already contains a '-----' text field?

Something about my environment:
- FF 3.0.6 (tried on Win XP SP 3 and openSUSE 11)
- ppa 4.2.2
- PostgreSQL 8.3.1 on openSUSE 11 (database with UTF-8 client encoding)

Thanks for consideration

WOODZ

Discussion

  • J.Guillaume (ioguix) de Rorthais

    • milestone: 897043 --> GIT
    • assigned_to: nobody --> ioguix
    • status: open --> closed-fixed
     

Log in to post a comment.