92 |
} |
} |
93 |
|
|
94 |
/* limit */ |
/* limit */ |
95 |
if (! PG_ARGISNULL(3)) limit = PG_GETARG_INT32(3); |
if (PG_ARGISNULL(3)) { |
96 |
|
limit = 0; |
97 |
|
} else { |
98 |
|
limit = PG_GETARG_INT32(3); |
99 |
|
} |
100 |
|
|
101 |
/* offset */ |
/* offset */ |
102 |
if (! PG_ARGISNULL(4)) offset = PG_GETARG_INT32(4); |
if (PG_ARGISNULL(4)) { |
103 |
|
offset = 0; |
104 |
|
} else { |
105 |
|
offset = PG_GETARG_INT32(4); |
106 |
|
} |
107 |
|
|
108 |
|
|
109 |
/* open the database */ |
/* open the database */ |
214 |
values[0] = (char *) attr2text(doc,"@id"); |
values[0] = (char *) attr2text(doc,"@id"); |
215 |
values[1] = (char *) attr2text(doc,"@uri"); |
values[1] = (char *) attr2text(doc,"@uri"); |
216 |
values[2] = (char *) attr2text(doc,"@title"); |
values[2] = (char *) attr2text(doc,"@title"); |
217 |
values[3] = (char *) attr2text(doc,"@type"); |
values[3] = (char *) attr2text(doc,"@size"); |
218 |
|
|
219 |
/* destloy the document object */ |
/* destloy the document object */ |
220 |
elog(DEBUG2, "est_doc_delete"); |
elog(DEBUG2, "est_doc_delete"); |