<div dir="ltr">Awesome -- that&#39;s 3 things to try and follow up on.   I just traced the entire script, and the output is useless, since it&#39;s parallelized.   Everything&#39;s interweaved, and it&#39;s impossible to associate sets of systems calls together.<div>
<br></div><div>Lemme see how far this gets me.  Thanks again!!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 12:30 PM, Peter Rabbitson <span dir="ltr">&lt;<a href="mailto:rabbit+dbic@rabbit.us" target="_blank">rabbit+dbic@rabbit.us</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Feb 04, 2014 at 12:19:48PM -0500, Phillip Moore wrote:<br>
&gt; OK, that must have gone right over my head, &#39;cause I did read it, but I<br>
&gt; don&#39;t see why that means I should expect there to be no trace output.<br>
&gt;<br>
&gt; How do you trace the SQL that is generated when the create() method is<br>
&gt; called then?<br>
<br>
</div>Several ways:<br>
<br>
You either preclude DBIC from using an extra connection (by wrapping<br>
your create in a transaction, which will have little effect over Sybase,<br>
but will offer a clue to DBIC to do something else, see second code I<br>
linked)<br>
<br>
Or you reach into the storage that holds the secondary connection (deep<br>
internals, do not use in production):<br>
$schema-&gt;storage-&gt;_writer_storage-&gt;_dbh-&gt;...<br>
<div class="im"><br>
&gt; Obviously, I&#39;m just turning on tracing on the connection<br>
&gt; associated with my $dbh, but if that secondary connection isn&#39;t exposed to<br>
&gt; me somehow, are you saying my only recourse is to trace the ENTIRE<br>
&gt; application execution, and then wade through the mountain of data?<br>
<br>
</div>That&#39;s the last option yes, but the above is easier.<br>
<div class="im"><br>
&gt;<br>
&gt; Oh, BTW, I tried switching to using NoBindVars, and was immediately<br>
&gt; reminded of why that failed for me last year:<br>
&gt;<br>
&gt; DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::Sybase::st<br>
&gt; execute failed: Server message number=257 severity=16 state=1 line=1 \<br>
&gt; server=NYTIBV6T228 text=Implicit conversion from datatype &#39;VARCHAR&#39; to<br>
&gt; &#39;NUMERIC&#39; is not allowed.  Use the CONVERT function to run this query.<br>
&gt;  Server message number=257 severity=16 state=1 line=1 server=NYTIBV6T228<br>
&gt; text=Implicit conversion from datatype &#39;VARCHAR&#39; to &#39;NUMERIC&#39; is not a\<br>
&gt; llowed.  Use the CONVERT function to run this query.<br>
&gt;   [for Statement &quot;INSERT INTO [ENGN_afsvolume] ( [name], [target],<br>
&gt; [toplevel], [type]) VALUES ( &#39;canon.root&#39;, &#39;9&#39;, &#39;1&#39;, &#39;cn&#39; )<br>
&gt; SELECT @@IDENTITY&quot;] at ./util/vms_bootstrap_database line 253<br>
&gt;<br>
&gt; That &#39;9&#39;, and &#39;1&#39; are both foreign keys which are numerics, and the<br>
&gt; dataserver doesn&#39;t like them to be quoted.<br>
&gt;<br>
<br>
</div>You do not have sufficient metadata on the &#39;target&#39; and &#39;toplevel&#39;<br>
columns. If you add data_type =&gt; $whateverthetypeis_likely_int to your<br>
add_columns hashref - DBIC will stop quoting:<br>
<a href="https://metacpan.org/source/RIBASUSHI/DBIx-Class-0.08270/lib/DBIx/Class/Storage/DBI/Sybase/ASE/NoBindVars.pm#L28" target="_blank">https://metacpan.org/source/RIBASUSHI/DBIx-Class-0.08270/lib/DBIx/Class/Storage/DBI/Sybase/ASE/NoBindVars.pm#L28</a><br>

<div class="HOEnZb"><div class="h5"><br>
Cheers<br>
<br>
<br>
_______________________________________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" target="_blank">http://dev.catalyst.perl.org/repos/bast/DBIx-Class/</a><br>
Searchable Archive: <a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" target="_blank">http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk</a><br>
</div></div></blockquote></div><br></div>