Here's a general snippet of code that I can't get to work. How do you set the DBD::mysql delimiter for installing functions with it? I've gotten this to work in the past, but I lost the code:
my $sth = $dbh->prepare("DELIMITER //");
$sth->execute();
exit;
DBD::mysql::st execute failed: You have an error in your SQL syntax; c
+heck the manual that corresponds to your MySQL server version for the
+ right syntax to use near 'DELIMITER //' at line 1 at /root/test.pl l
+ine 22, <FH> line 8.
root@vagrant:~# perl -MDBI -e 'DBI->installed_versions'
Perl : 5.010001 (i486-linux-gnu-thread-multi)
OS : linux (2.6.32-5-686)
DBI : 1.612
DBD::mysql : 4.016
DBD::Sponge : 12.010002
DBD::Proxy : 0.2004
DBD::Gofer : 0.014123
DBD::File : 0.39
DBD::ExampleP : 12.010007
DBD::DBM : 0.05
This is one of those things where I'm not sure of what to google for to get the right answer. A pointer would be great. Thanks!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.