[couchdb-glib] Use couchdb_document_get_id instead of accessing directly the _id field
- From: Rodrigo Moya <rodrigo src gnome org>
- To: svn-commits-list gnome org
- Subject: [couchdb-glib] Use couchdb_document_get_id instead of accessing directly the _id field
- Date: Wed, 24 Jun 2009 15:26:02 +0000 (UTC)
commit c69f882f074ba444f8ae5282fbe1778118d75e9c
Author: Rodrigo Moya <rodrigo gnome-db org>
Date: Wed Jun 24 16:59:05 2009 +0200
Use couchdb_document_get_id instead of accessing directly the _id field
couchdb-glib/couchdb-document.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/couchdb-glib/couchdb-document.c b/couchdb-glib/couchdb-document.c
index a57fc1c..b375461 100644
--- a/couchdb-glib/couchdb-document.c
+++ b/couchdb-glib/couchdb-document.c
@@ -114,7 +114,7 @@ couchdb_document_put (CouchDBDocument *document,
g_return_val_if_fail (COUCHDB_IS_DOCUMENT (document), FALSE);
g_return_val_if_fail (dbname != NULL, FALSE);
- id = couchdb_document_get_string_field (document, "_id");
+ id = couchdb_document_get_id (document);
body = couchdb_document_to_string (document);
if (id) {
url = g_strdup_printf ("http://%s/%s/%s", document->couchdb->hostname, dbname, id);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]