I CAN HAS PADAWAN!
Tuesday, June 12th, 2007 01:34 amFirst lolcats, then philolsophers and now lolcode ... this is 2 viral 4 wurdz.
Aaaargh! Snap out of it, Solri!
Anyway, I now have a Padawan apprentice. OK, I'm not teaching her to use the Force; I'm teaching her to fiddle with the student re-registration program I wrote, but I call her "my young Padawan" and she calls me "Master", and that's good enough for me. In the process, I too am learning. For example, I've learned that the unfixable bug which I thought was a weird PHP bug is actually a weird MySQL bug. This leaves it just as unfixable but much more interesting: the database will sometimes (though not always) change the student's university ID to 2147483647 and then refuse to change it to any other number whatever I do. I think I'm about to have one of those numerical epiphanies that crop up from time to time in films and TV series (Lost being a recent example). I have also learned that I really need to write some code to move records from one table to another. And it took someone who ten minutes earlier was asking about the difference between a client and server to point that out, so maybe I should start calling her "Master".
Update: Aha, I have just found that 2147483647 is (2^31)-1, which is the largest integer that will fit in that field. The plot thickens ...
Upperdate: Solved! I CAN HAS BIGINT! (see comments)
Aaaargh! Snap out of it, Solri!
Anyway, I now have a Padawan apprentice. OK, I'm not teaching her to use the Force; I'm teaching her to fiddle with the student re-registration program I wrote, but I call her "my young Padawan" and she calls me "Master", and that's good enough for me. In the process, I too am learning. For example, I've learned that the unfixable bug which I thought was a weird PHP bug is actually a weird MySQL bug. This leaves it just as unfixable but much more interesting: the database will sometimes (though not always) change the student's university ID to 2147483647 and then refuse to change it to any other number whatever I do. I think I'm about to have one of those numerical epiphanies that crop up from time to time in films and TV series (Lost being a recent example). I have also learned that I really need to write some code to move records from one table to another. And it took someone who ten minutes earlier was asking about the difference between a client and server to point that out, so maybe I should start calling her "Master".
Update: Aha, I have just found that 2147483647 is (2^31)-1, which is the largest integer that will fit in that field. The plot thickens ...
Upperdate: Solved! I CAN HAS BIGINT! (see comments)
no subject
Date: 2007-06-12 12:33 am (UTC)Same problem
Date: 2007-06-12 05:30 am (UTC)Re: Same problem
Date: 2007-06-12 08:00 am (UTC)Re: Same problem
Date: 2007-06-12 08:34 am (UTC)Re: Same problem
Date: 2007-06-12 10:51 am (UTC)no subject
Date: 2007-06-12 08:00 am (UTC)no subject
Date: 2007-06-12 08:29 am (UTC)perhaps reading the manual would help :)
Some data access frameworks assign int ID field to -1 untill insert transaction finishes, but if you wrote everything youself this is not the case.
How does the ID setup and what's the sql you're using to insert the record?
no subject
Date: 2007-06-12 08:48 am (UTC)no subject
Date: 2007-06-12 01:59 pm (UTC)no subject
Date: 2007-06-12 05:23 pm (UTC)