[tracker] TrackerSparqlBuilder: add object_double() method.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] TrackerSparqlBuilder: add object_double() method.
- Date: Wed, 4 Nov 2009 10:35:22 +0000 (UTC)
commit 30c93255294c6111c205c21e988f34a01c5ebb43
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Nov 4 11:27:46 2009 +0100
TrackerSparqlBuilder: add object_double() method.
src/libtracker-common/tracker-sparql-builder.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-sparql-builder.vala b/src/libtracker-common/tracker-sparql-builder.vala
index 4b3618e..09ef643 100644
--- a/src/libtracker-common/tracker-sparql-builder.vala
+++ b/src/libtracker-common/tracker-sparql-builder.vala
@@ -176,6 +176,10 @@ public class Tracker.SparqlBuilder : Object {
object_string ("%04d-%02d-%02dT%02d:%02d:%02dZ".printf (tm.year + 1900, tm.month + 1, tm.day, tm.hour, tm.minute, tm.second));
}
+ public void object_double (double literal) {
+ object (literal.to_string ());
+ }
+
public void object_blank_open ()
requires (state == State.PREDICATE || state == State.OBJECT)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]