Corrected DB query of PDM
authorRandeep Singh <randeep.s@samsung.com>
Thu, 1 Oct 2015 09:59:57 +0000 (18:59 +0900)
committerSachin Agrawal <sachin.agrawal@intel.com>
Fri, 2 Oct 2015 22:41:58 +0000 (22:41 +0000)
commit936bd29f43e7a5e82bebb382b338e685b6b7680b
tree00e1d18b935c0b4b1d80c6002eae03c93b57fabe
parent130ed4ac7835835bb707bceaa226e2eb132a04ad
Corrected DB query of PDM

To check the existence of link between two devices, We should use query with
‘and’ not ‘or’.
Previously link  was checked with ‘or’ thats why if we try to create multiple
links involving one same device and other different devices then it was showing
link already exists. for example if we create link between A-B then if we try
to create link between A-C then we are getting error that link already exists.

Change-Id: I408658af4f423a641bab077439435711ecac876e
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3361
Reviewed-by: Woochul Shim <woochul.shim@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
(cherry picked from commit 370c560720ef374672d6a91d57cb7c72311c2182)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3425
resource/csdk/security/provisioning/src/provisioningdatabasemanager.c [changed mode: 0755->0644]