<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 42: Helpful error message when attempting DELETE/INSERT/UPDATE</title><link href="https://sourceforge.net/p/csvjdbc/support-requests/42/" rel="alternate"/><link href="https://sourceforge.net/p/csvjdbc/support-requests/42/feed.atom" rel="self"/><id>https://sourceforge.net/p/csvjdbc/support-requests/42/</id><updated>2015-12-10T19:16:58.973000Z</updated><subtitle>Recent changes to 42: Helpful error message when attempting DELETE/INSERT/UPDATE</subtitle><entry><title>Helpful error message when attempting DELETE/INSERT/UPDATE</title><link href="https://sourceforge.net/p/csvjdbc/support-requests/42/" rel="alternate"/><published>2015-12-10T19:16:58.973000Z</published><updated>2015-12-10T19:16:58.973000Z</updated><author><name>Simon Chenery</name><uri>https://sourceforge.net/u/simoc/</uri></author><id>https://sourceforge.neta03410eb93bf81aadc03cd3e2498b0685eb62e8d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Report a helpful error message if user attempts to use a DELETE, INSERT or UPDATE SQL statement with CsvJdbc.&lt;/p&gt;
&lt;p&gt;Currently, &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;stmt.execute("DELETE FROM sample");
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;throws the following unhelpful SQLException&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;java.sql.SQLException: Syntax error: Encountered " &amp;lt;NAME&amp;gt; "DELETE "" at line 1, column 1.
Was expecting:
"SELECT" ...

at org.relique.jdbc.csv.CsvStatement.execute(CsvStatement.java:559)
at org.relique.jdbc.csv.Runner1.main(Runner1.java:33)
&lt;/pre&gt;&lt;/div&gt;


&lt;p&gt;and INSERT and UPDATE throw similarly unhelpful SQLExceptions.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>