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 15:34:04 +0000 (15:34 +0000)
commit370c560720ef374672d6a91d57cb7c72311c2182
treed5882186d4beb5ea1d6eb4d498bd5a477470000b
parent0595dc899f90f76f6ef7df6684b8664bf5ee9700
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>
resource/csdk/security/provisioning/src/provisioningdatabasemanager.c [changed mode: 0755->0644]