diyaz has asked for the wisdom of the Perl Monks concerning the following question:
This gives me a segmentation fault this is mySQL 5.7 and perl 5.22.1my $crc32=crc32("$sequence"); #check crc32 of sequence my $th=$dbh->prepare(qq(SELECT COUNT(1) FROM Sequence WHERE Seq_Checks +um=$crc32)); #check if it already exists $th->execute(); my $test=$th->fetch()->[0]; print "$test\n"; #output if it exists
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: checking mySQL database for unique CRC32 as proxy for long string
by hippo (Archbishop) on Jan 22, 2016 at 22:54 UTC | |
by erix (Prior) on Jan 22, 2016 at 23:15 UTC | |
by diyaz (Beadle) on Jan 22, 2016 at 23:54 UTC | |
by diyaz (Beadle) on Jan 22, 2016 at 23:57 UTC | |
|
Re: checking mySQL database for unique CRC32 as proxy for long string
by GotToBTru (Prior) on Jan 22, 2016 at 22:29 UTC | |
by diyaz (Beadle) on Jan 22, 2016 at 23:47 UTC |