Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
As stated above, strict mode is the only way for it to happen (mysql 5 only)

<quote>"but both methods involve me doing work that the database should be able to do much better (since it is doing the conversion"</quote> that's why i switched to postgres. mysql4 has no way to stop that from happening, and throws no warnings. mysql5 has the strict mode, but it can be overridden unless you're a beast about security policy on the server ( which is annoying, as mysql starts with a very loose policy, and makes you tighten most every option )

the error messages from mysql are fairly worthless too - they're mostly error codes with a generic descriptor. its impossible to bugfix without googling their online documentation. on the other hand, postgres throws verbose errors with detailed descriptions.

a lot of people love mysql, i used to be one of them. then 3gbs of data got destroyed by truncation, bad foreign key support, and i went crazy trying to decipher the server messages. now i'm in the postgres camp and completely love it.

if you're on mysql4, consider switching to postgres (since you'd have to install a new db anyways). its got a steeper learning curve, but its totally worth it.

as far as the speed differences between the two - unless you're getting slashdotted , you shouldn't really notice anything.

In reply to Re: DBI mysql truncation best practice? by nmerriweather
in thread DBI mysql truncation best practice? by eXile

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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    [LanX]: morning
    marto waves
    [Discipulus]: if you prepend 'good' to this mere part of the day you get a in good morning LanX
    [LanX]: good
    [LanX]: ;-p

    How do I use this? | Other CB clients
    Other Users?
    Others having an uproarious good time at the Monastery: (11)
    As of 2018-02-20 10:33 GMT
    Find Nodes?
      Voting Booth?
      When it is dark outside I am happiest to see ...

      Results (268 votes). Check out past polls.