]> git.evergreen-ils.org Git - working/Evergreen.git/commit
In oils_cstore.c: fix autojoin, i.e. the facility for constructing
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Apr 2009 12:48:54 +0000 (12:48 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Apr 2009 12:48:54 +0000 (12:48 +0000)
commit516a084d7de6b23f2e2e5c056779225ec3e4f6c2
tree5dc473f722ce9b52a78738aab1871a74c78d370e
parentdca27d998d71814a6fbe963207f5220816212a6a
In oils_cstore.c: fix autojoin, i.e. the facility for constructing
a join when the JSON query doesn't specify the columns involved.

When looking up a foreign key linkage in the IDL, ignore the parent
table's end of the link (where reltype = "has_many"), because the
parent doesn't know the name of the column at the other end.

Now an autojoin can work regardless of which table is subordinate
to which.

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