I have no solution, but for all bleading edge versions, it is still the same:
Using DBI version 1.616
Using DBD::File version 0.40
Using SQL::Statement version 1.33
Using Text::CSV_XS version 0.83
DBD::CSV::st execute failed: You passed 0 parameters where 1 required
+[for Statement "
CREATE TABLE new AS SELECT file_01.Prefix, file_01.NumberRange,
file_02.Termination, file_02.Service, file_02.ChargeBand
FROM file_01 INNER JOIN file_02
ON file_01.Chargeband = file_02.ChargeBand
WHERE file_02.Termination LIKE '%something%'"] at inner.pl line 32
+.
DBD::CSV::st execute failed: You passed 0 parameters where 1 required
+[for Statement "
CREATE TABLE new AS SELECT file_01.Prefix, file_01.NumberRange,
file_02.Termination, file_02.Service, file_02.ChargeBand
FROM file_01 INNER JOIN file_02
ON file_01.Chargeband = file_02.ChargeBand
WHERE file_02.Termination LIKE '%something%'"] at inner.pl line 32
+.
Exit 22
With DBD::CSV problems, in 99% of the cases, the real problem is in DBD::File (part of DBI) or SQL::Statement, which makes it so hard to pinpoint the source of the failures. DBD::CSV is just a very very thin interface layer that links Text::CSV_XS to DBD::File which uses SQL::Statement to do the SQL "stuff".
Enjoy, Have FUN! H.Merijn
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.