Hi

slightly off topic. I'm confronted with the possibility that Perl code of mine is corrupting a MariaDB sever.

I wrote some SQL which recursively descends into a nested tree in a table with id - parent-id relations. Turned out that my test instance of MariaDB was far newer than the one in production (Version 10.0.x about 4 years old).

Hence I couldn't use a BEGIN NOT ATOMIC clause, to keep the recursion inside a single transaction.

So I fell back to the possibility to dynamically create a stored procedure and execute it when needed.

This worked pretty fine, now one of our production servers can't use SPs anymore

Cannot load from mysql.proc. The table is probably corrupted

Question: Is it officially discouraged to dynamically drop, create and execute SPs from Perl? Are there dangerous race conditions?

I suppose that a version upgrade would solve the issue and hopefully we won't need to roll back to saved state.

In the end I can only politely remind the DBA to keep the MariaDB Versions in sync.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice


In reply to [DBI / MariaDB / Stored Procedures] Cannot load from mysql.proc. The table is probably corrupted by LanX

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.