I've been having some database troubles.
Originally, when I first installed CMS, I would try to insert an item and would get the following error:
Request Error
Query did not return any rows.
while executing
"db_1row get_storage_type {select
storage_type, item_id
from
cr_items
where
item_id = (select
..."
(procedure "upload_content" line 15)
.....
So I uninstalled CMS, with difficulty. Now, trying to reinstall it results in DB errors as well
Then, my photo album stopped showing the content of the pictures that I loaded into it, including new ones that I added after the problem started. I unmounted the photo-album and tried to delete, then got this error:
Database operation "0or1row" failed (exception NSDB,
"Query was not a statement returning rows.")
ERROR: pa_pack_fldr_map_pack_id_fk referential integrity
violation - key in apm_packages still referenced from
pa_package_root_folder_map
SQL:
select apm_package__delete('343');
Today, I tried to delete an umounted instance of Edit-This-Page and found the following error:
Database operation "0or1row" failed (exception NSDB,
"Query was not a statement returning rows.")
ERROR: cr_flder_pkg_id_fk referential integrity violation
- key in apm_packages still referenced from cr_folders
SQL:
select apm_package__delete('1183');
This looks to me to be all a similar type of error, but I don't know enough about DB programming to fix it (or, I'm worried that I'll mess things up worse!).
My basic question, I think is this: If an application installation gets munged, what is the method for cleaning it out of the database without hurting anything else? The goal is to be able to reinstall it later.
I think what I need is a pointer in the right direction, along with a short explanation of the principles involved. If someone could give that, I'd be grateful.
Thanks,
-Shawn