I was getting duplicate entry (primary key) errors in the uc_custom_price table. I changed uc_custom_price.module
Basically I moved the 'insert' query into the 'insert' case.
Patch below.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | dup_ents-1102138-4248376.patch | 1.41 KB | griz |
| #1 | 1102138-dup_ent-D6.patch | 1.3 KB | griz |
Comments
Comment #1
griz commentedOne patch.
Comment #2
griz commentedok, i thought this worked.It doesn't. Working on it.
Comment #3
griz commentedOk, now it works.
Comment #4
griz commented#$?&!
Comment #5
hacmx commentedtesting & Working, thx man! :)
Comment #6
tr commented@griz: I think the patch improves the code, but I'm curious as to what you were doing that resulted in a duplicate key error? I can't reproduce that error. Are you using a database other than MySQL by any chance?
Comment #7
griz commentedNothing special as far as I am aware. I'm using MySQL on ubuntu 10.04, PHP 5.3.
I think it might be a 5.3 thing, but that's just a hunch.
hacmx, what about you?
Comment #8
hacmx commentedI'm on mysql 4.1.22 / php 5.2.10 / Linux
The error message appears after editing a node with this module without changing any of the content.
Comment #9
chinita7 commentedI applied #4 and my error is gone. I'm also using PHP 5.3. Thnaks.
Comment #10
alan_hugo commentedThanks Griz, this helped me a great!! :)
Comment #11
griz commented:)
RTBC, isn't it?