Hi Caleb,<br><br><br><div class="gmail_quote">On Mon, Sep 21, 2009 at 12:32 AM, Caleb Cushing <span dir="ltr">&lt;<a href="mailto:xenoterracide@gmail.com" target="_blank">xenoterracide@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

            tran.exec(&quot;INSERT INTO korama.tracks ( file_path, title ) VALUES (&#39;&quot;<br>
                + tran.esc(iter-&gt;path())<br>
                + &quot;&#39;,&#39;&quot;<br>
                + tran.esc(iter-&gt;path())<br>
                + &quot;&#39;);&quot;<br>
            );<br>
trying to insert the path() (using boost::filesystem) into the<br>
database but I can&#39;t get it to compile. I&#39;ve tried various variations<br>
of concatenating the strings in exec... none work, and each withe<br>
different errors. any help would be appreciated.<br>
<font color="#888888"><br></font></blockquote><div><br><br>operator+ is not implemented for const char*. <br><br>Trying something like:<br><br>           tran.exec(std::string(&quot;INSERT INTO korama.tracks ( file_path, title ) VALUES (&#39;&quot;)<br>


                + tran.esc(iter-&gt;path())<br>
                + &quot;&#39;,&#39;&quot;<br>
                + tran.esc(iter-&gt;path())<br>
                + &quot;&#39;);&quot;<br>
            );<br> <br>will probably do the trick,<br><br>Kind regards,<br>Maurice<br><br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<font color="#888888">
--<br>
Caleb Cushing<br>
<br>
<a href="http://xenoterracide.blogspot.com" target="_blank">http://xenoterracide.blogspot.com</a><br>
_______________________________________________<br>
Libpqxx-general mailing list<br>
<a href="mailto:Libpqxx-general@pgfoundry.org" target="_blank">Libpqxx-general@pgfoundry.org</a><br>
<a href="http://pgfoundry.org/mailman/listinfo/libpqxx-general" target="_blank">http://pgfoundry.org/mailman/listinfo/libpqxx-general</a><br>
</font></blockquote></div><br>