Posted by: AimHere
« on: October 20, 2013, 05:56:14 pm »Ah, okay.
CREATE VIEW PRIMEVALUES ("vid", "value") AS
SELECT MIN(EX1."sid") minsid, EX1."value" FROM STUDIOS EX1
INNER JOIN STUDIOS EX2 ON (EX1."sid" <> EX2."sid" AND EX2."value" = EX1."value")
GROUP BY EX1."value"
ORDER BY minsid
CREATE VIEW DUPLICATES ("dupid", "primeid") AS
SELECT "sid", "vid" FROM STUDIOS
INNER JOIN PRIMEVALUES ON (STUDIOS."value" = PRIMEVALUES."value")
WHERE (STUDIOS."sid" <> PRIMEVALUES."vid")
UPDATE MOVIESTUDIOS SET "sid" = (SELECT FIRST 1 "primeid" FROM DUPLICATES WHERE "dupid" = "sid")
WHERE EXISTS (SELECT FIRST 1 1 FROM DUPLICATES WHERE "dupid" = "sid")
DELETE FROM STUDIOS WHERE EXISTS (SELECT FIRST 1 1 FROM DUPLICATES WHERE "dupid" = "sid")
QuoteWill this update automatically consolidate all of the identically-named "studio" entries I now have?Well, that's a bit tricky as I would need to check all list values for all fields and correct them. This could lead to a rather lengthy waiting time for all users. I am not sure if it worth it as it seems to me that not so many of them have the "Ignore case" option on AND values with apostrophs. I will do some tests and will let you know.
There is another question: why could not you load the 0.9.9.21 database in 1.0.x? It would be good to have a sample database that reproduces this problem as well.
Will this update automatically consolidate all of the identically-named "studio" entries I now have?Well, that's a bit tricky as I would need to check all list values for all fields and correct them. This could lead to a rather lengthy waiting time for all users. I am not sure if it worth it as it seems to me that not so many of them have the "Ignore case" option on AND values with apostrophs. I will do some tests and will let you know.
In a couple of days.
OK, I could reproduce it at last. It only happens if "Ignore case" option is enabled for the list values. Will be fixed in the next update, that I currently prepare.
Have you huys tried the latest beta? As I can't reproduce the problem there...