FF history & sqlite
Posted: Wed Oct 14, 2009 1:57 pm
I'm trying to replace all my q3f history w/ q3w history, but failing.
Querying works:
sqlite3 places.sqlite "select url from moz_places where url like '%quake3forum%'"
(big list of q3f URLs)
But updating does not:
sqlite3 places.sqlite "update moz_places set url=replace(url,'quake3forum','quake3world') where url like '%quake3forum%'"
That fails w/ this error message:
SQL error: column url is not unique
I'm guessing there's a unique index on URL, and that update would cause a integrity violation. Does anyone know of a way to make sqlite ignore errors on a per row basis and continue on with the reset of the result set?
Querying works:
sqlite3 places.sqlite "select url from moz_places where url like '%quake3forum%'"
(big list of q3f URLs)
But updating does not:
sqlite3 places.sqlite "update moz_places set url=replace(url,'quake3forum','quake3world') where url like '%quake3forum%'"
That fails w/ this error message:
SQL error: column url is not unique
I'm guessing there's a unique index on URL, and that update would cause a integrity violation. Does anyone know of a way to make sqlite ignore errors on a per row basis and continue on with the reset of the result set?