(no subject)
Mar. 15th, 2005 05:18 pmNote to self:
Make sure when you construct that UPDATE statement next time that you remember to put in the "where primary_key=(the id)" part. Your update will do exactly what you ask it to do, not what you mean for it to do.
"Okay, all your meetings arebelong to us in Colorado Springs. Always have been, always will be." *facepalm*
I am at least coherent enough to be working on my local development copy of the database. Thank $deity for small favors. See, this is what happens when I have to wake up in time to get to an appointment scheduled for an hour earlier than I normally have to be at work.
Make sure when you construct that UPDATE statement next time that you remember to put in the "where primary_key=(the id)" part. Your update will do exactly what you ask it to do, not what you mean for it to do.
"Okay, all your meetings are
I am at least coherent enough to be working on my local development copy of the database. Thank $deity for small favors. See, this is what happens when I have to wake up in time to get to an appointment scheduled for an hour earlier than I normally have to be at work.
no subject
Date: 2005-03-15 10:30 pm (UTC)Yay, backup and restoration policies.
no subject
Date: 2005-03-15 10:41 pm (UTC)id=1;delete * from foo; :)
no subject
Date: 2005-03-15 11:25 pm (UTC)I don't understand why this warrants a facepalm -- did you write it?
no subject
Date: 2005-03-16 12:31 am (UTC)(Summary: I told the database to update these fields in that table with these values, but unfortunately left off the "but only where the record matches this particular id". If you do that, it update those fields in all of the records, thus making it look like all of our meetings for the last two years were in Colorado Springs. And that, ladies and gentlemen, is why you shouldn't develop using your live data. =) )
no subject
Date: 2005-03-16 12:54 am (UTC)