<div dir="ltr">Greetings,<div><br></div><div>Can you share the full DBIx::Class::Schema file?</div><div><br></div><div>It sounds like you have some inflation/deflation going on, similar to what happens to DateTime objects and datetime types if you include:</div><div><br></div><div><font face="monospace, monospace">__PACKAGE__->load_components(qw/InflateColumn::DateTime/);</font><br></div><div><br></div><div>If this is affecting all of your columns with a type of bigint and something is causing that to get inflated to a Math::BigInt object it would explain the errors and behavior you are seeing.</div><div><br></div><div>Also, is it correct to assume that $inode in your example is a DBIx::Result? If so, be sure to reference via the public interface $inode->owner->id instead of via the "private-ish" HashRef.</div><div><br></div><div>Best Regards,</div><div>Robert Stone</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 4, 2017 at 4:42 PM, Alex Povolotsky <span dir="ltr"><<a href="mailto:tarkhil@over.ru" target="_blank">tarkhil@over.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Things are getting more and more strange.<br>
<br>
Attempt to isolate code failed; simple one-liner works.<br>
<br>
$inode->{owner}->{id} from the original code is not an object.<br>
<br>
In fact, problem was in different line, where plain status => 1 somehow turned into 'status' => bless( {<br>
'sign' => '+',<br>
'value' => [<br>
1<br>
]<br>
}, 'Math::BigInt' ),<br>
<br>
I have no idea of how can it be...<div class="HOEnZb"><div class="h5"><br>
<br>
On 05.01.2017 0:12, Alex Povolotsky wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Yes; moreover, from different computer the code<br>
<br>
my $owner = $schema->resultset('InstaPerso<wbr>n')->find_or_create( {<br>
<br>
insta_id => 178873658,<br>
},<br>
{<br>
key =><br>
'instabot_instagram_id_idx' },<br>
);<br>
<br>
works just fine. Same version of DBIx::Class.<br>
<br>
I've tried to copy Result file for InstaPerson, no success.<br>
<br>
On 05.01.2017 0:07, Len Jaffe wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Wed, Jan 4, 2017 at 3:58 PM, Alex Povolotsky <<a href="mailto:tarkhil@over.ru" target="_blank">tarkhil@over.ru</a><br>
<mailto:<a href="mailto:tarkhil@over.ru" target="_blank">tarkhil@over.ru</a>>> wrote:<br>
<br>
Suddenly I'm unable to insert data into my table.<br>
[snip]<br>
<br>
<br>
Can you insert data via the command line?<br>
<br>
--<br>
Len Jaffe - Information Technology Smoke Jumper<br>
- <a href="mailto:lenjaffe@jaffesystems.com" target="_blank">lenjaffe@jaffesystems.com</a> <mailto:<a href="mailto:lenjaffe@jaffesystems.com" target="_blank">lenjaffe@jaffesystems.<wbr>com</a>><br>
<a href="tel:614-404-4214" value="+16144044214" target="_blank">614-404-4214</a> @LenJaffe <<a href="https://www.twitter.com/lenJaffe" rel="noreferrer" target="_blank">https://www.twitter.com/lenJa<wbr>ffe</a>><br>
<a href="http://www.lenjaffe.com" rel="noreferrer" target="_blank">www.lenjaffe.com</a> <<a href="http://www.lenjaffe.com/" rel="noreferrer" target="_blank">http://www.lenjaffe.com/</a>><br>
Host of Code Jam Columbus <<a href="http://www.meetup.com/techlifecolumbus/" rel="noreferrer" target="_blank">http://www.meetup.com/techlif<wbr>ecolumbus/</a>> -<br>
@CodeJamCMH <<a href="https://www.twitter.com/CodeJamCMH" rel="noreferrer" target="_blank">https://www.twitter.com/CodeJ<wbr>amCMH</a>><br>
Curator of Advent Planet <<a href="http://www.lenjaffe.com/AdventPlanet/" rel="noreferrer" target="_blank">http://www.lenjaffe.com/Adven<wbr>tPlanet/</a>> - An<br>
Aggregation of Online Advent Calendars.<br>
<br>
<br>
<br>
______________________________<wbr>_________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-b<wbr>in/mailman/listinfo/dbix-class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" rel="noreferrer" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/r<wbr>epos/bast/DBIx-Class/</a><br>
Searchable Archive:<br>
<a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" rel="noreferrer" target="_blank">http://www.grokbase.com/group/<wbr>dbix-class@lists.scsys.co.uk</a><br>
<br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-b<wbr>in/mailman/listinfo/dbix-class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" rel="noreferrer" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/r<wbr>epos/bast/DBIx-Class/</a><br>
Searchable Archive:<br>
<a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" rel="noreferrer" target="_blank">http://www.grokbase.com/group/<wbr>dbix-class@lists.scsys.co.uk</a><br>
<br>
</blockquote>
<br>
______________________________<wbr>_________________<br>
List: <a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class" rel="noreferrer" target="_blank">http://lists.scsys.co.uk/cgi-b<wbr>in/mailman/listinfo/dbix-class</a><br>
IRC: <a href="http://irc.perl.org#dbix-class" rel="noreferrer" target="_blank">irc.perl.org#dbix-class</a><br>
SVN: <a href="http://dev.catalyst.perl.org/repos/bast/DBIx-Class/" rel="noreferrer" target="_blank">http://dev.catalyst.perl.org/r<wbr>epos/bast/DBIx-Class/</a><br>
Searchable Archive: <a href="http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk" rel="noreferrer" target="_blank">http://www.grokbase.com/group/<wbr>dbix-class@lists.scsys.co.uk</a><br>
</div></div></blockquote></div><br></div>