]> git.evergreen-ils.org Git - Evergreen.git/commit
Bug fixes in verifyObjectPCRUD():
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 26 May 2010 13:27:29 +0000 (13:27 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 26 May 2010 13:27:29 +0000 (13:27 +0000)
commit6ce3cf03857caa62f7c51af22c62800a7bef03c0
tree3abb49443ba96a872d35e4b146975216428dbe75
parent8e397e9a4b998ce6b7aacd2d7f8e681120afa3b1
Bug fixes in verifyObjectPCRUD():

1. Don't throw an exception just because a foreign key is null.

2. When looking for local or foreign contexts, always do a lookup of
the current row, even if you already have an image of that row in
hand.  The image you have may not include the foreign key(s) you need.

The latter fix is simple but inefficient.  It should be possible to
avoid the extra lookup most of the time, and maybe all of the time,
for the search, retrieve, and id_list methods.  However that will
involve additional complications, not yet implemented.  Let's make
it correct first, and worry about efficiency later.

M    Open-ILS/src/c-apps/oils_sql.c

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16504 dcc99617-32d9-48b4-a31d-7c20da2025e4
Open-ILS/src/c-apps/oils_sql.c