All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] Remove unnecessary ordering from single vCard query
@ 2011-01-26 11:01 Rafal Michalski
  2011-01-26 11:01 ` [PATCH 2/2] Fix fetching non-empty single owner vCard Rafal Michalski
  2011-01-26 11:29 ` [PATCH 1/2] Remove unnecessary ordering from single vCard query Johan Hedberg
  0 siblings, 2 replies; 4+ messages in thread
From: Rafal Michalski @ 2011-01-26 11:01 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Rafal Michalski

Previously ordering for query called CONTACTS_QUERY_FROM_URI was applied.
It is not needed since always only one vCard (with id specified)
is fetched.
---
 plugins/phonebook-tracker.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/plugins/phonebook-tracker.c b/plugins/phonebook-tracker.c
index e60cf74..aee159c 100644
--- a/plugins/phonebook-tracker.c
+++ b/plugins/phonebook-tracker.c
@@ -788,11 +788,9 @@
 "\"NOTACALL\" \"false\" \"false\" "					\
 "<%s> "									\
 "WHERE {"								\
-"	<%s> a nco:PersonContact ;"					\
-"	nco:nameFamily ?_key ."						\
+"	<%s> a nco:PersonContact ."					\
 "	OPTIONAL {<%s> nco:hasAffiliation ?_role .}"			\
-"}"									\
-"ORDER BY ?_key tracker:id(<%s>)"
+"}"
 
 #define CONTACTS_OTHER_QUERY_FROM_URI					\
 	"SELECT fn:concat(\"TYPE_OTHER\", \"\31\", nco:phoneNumber(?t))"\
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-01-26 11:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-26 11:01 [PATCH 1/2] Remove unnecessary ordering from single vCard query Rafal Michalski
2011-01-26 11:01 ` [PATCH 2/2] Fix fetching non-empty single owner vCard Rafal Michalski
2011-01-26 11:19   ` Luiz Augusto von Dentz
2011-01-26 11:29 ` [PATCH 1/2] Remove unnecessary ordering from single vCard query Johan Hedberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.