Hi again!
Well, I don't know whether this problem is related to Perl/DBD::mysql, mySQL itself, or just my program.
Anyhow, here it is: I have a certain table in the database with a field called 'id' holding an "INTEGER NOT NULL".
For some reason, when INSERTing a new entry to the table, the program/the database/perl will usually(!) ignore the value supplied for the 'id' field and insert some other (6 digit) number (It's always the same number). This will not happen every now and again, I have yet to find a certain pattern, and I don't think I will find one.
No need to mention that I've double- and even triple-checked that the correct value is supplied to the statement handle.
Thing is, and I don't know if it's abnormal or not, if I try to INSERT entries which have identical field values, except for the 'id' field, they will all be INSERTed with that same number as the id, and becuase all other fields are identical, the entry will be multiplied.
My host runs FreeBSD, Perl version is 5.005_03 built for i386-freebsd, DBI version is 1.28, DBD::mysql version is 2.0416.
Any suggestions?
Thanks.
-------------------------
Live fat, die young
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.