cvs: pecl /mdbtools mdbtools.xml
| From: | Hartmut Holzgraefe | Date: | Mon, 20 Feb 2006 18:45:25 +0000 |
| Subject: | cvs: pecl /mdbtools mdbtools.xml | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-5224@lists.php.net to get a copy of this message | ||
hholzgra Mon Feb 20 18:45:25 2006 UTC
Modified files:
/pecl/mdbtools mdbtools.xml
Log:
spec file updates
http://cvs.php.net/viewcvs.cgi/pecl/mdbtools/mdbtools.xml?r1=1.6&r2=1.7&diff_format=u
Index: pecl/mdbtools/mdbtools.xml
diff -u pecl/mdbtools/mdbtools.xml:1.6 pecl/mdbtools/mdbtools.xml:1.7
--- pecl/mdbtools/mdbtools.xml:1.6 Mon Feb 20 17:43:10 2006
+++ pecl/mdbtools/mdbtools.xml Mon Feb 20 18:45:25 2006
@@ -36,11 +36,11 @@
</maintainers>
<release>
- <version>0.1</version>
- <date>2004-03-25</date>
- <state>alpha</state>
+ <version>0.6</version>
+ <date>2006-02-20</date>
+ <state>beta</state>
<notes>
- first tests
+ - preparing for stable release
</notes>
</release>
@@ -108,7 +108,7 @@
MdbTableDef *table;
int num_cols;
char **bound_values;
- char **bound_lengths;
+ int *bound_lengths;
char **column_names;
} my_MdbTableDef;
@@ -162,14 +162,6 @@
if (!return_res) RETURN_FALSE;
</code>
- <test>
- <code>
-echo "hallo";
- </code>
- <result>
-hallo
- </result>
- </test>
</function>
<function name="mdb_close">
@@ -184,7 +176,7 @@
]]>
</description>
<code>
- zend_list_delete(Z_LVAL_P(db));
+ FREE_RESOURCE(db_res);
</code>
</function>
@@ -202,7 +194,7 @@
</description>
<code>
<![CDATA[
- RETURN_LONG(res_db->f->jet_version);
+ RETURN_LONG(db->f->jet_version);
]]>
</code>
</function>
@@ -225,13 +217,13 @@
MdbCatalogEntry *entry;
/* read the catalog */
- if (NULL == mdb_read_catalog (res_db, MDB_TABLE)) RETURN_FALSE;
+ if (NULL == mdb_read_catalog (db, MDB_TABLE)) RETURN_FALSE;
array_init(return_value);
/* loop over each entry in the catalog */
- for (i=0; i < res_db->num_catalog; i++) {
- entry = g_ptr_array_index (res_db->catalog, i);
+ for (i=0; i < db->num_catalog; i++) {
+ entry = g_ptr_array_index (db->catalog, i);
if (!systabs && !strncmp("MSys", entry->object_name, 4)) {
continue;
@@ -254,12 +246,12 @@
MdbCatalogEntry *entry;
MdbColumn *col;
- mdb_read_catalog(res_db, MDB_TABLE);
+ mdb_read_catalog(db, MDB_TABLE);
return_res->table = NULL;
- for (i=0;i<res_db->num_catalog;i++) {
- entry = g_ptr_array_index(res_db->catalog,i);
+ for (i=0;i<db->num_catalog;i++) {
+ entry = g_ptr_array_index(db->catalog,i);
if (!strcmp(entry->object_name, table)) {
return_res->table = mdb_read_table(entry);
if (!return_res->table) RETURN_FALSE;
@@ -310,14 +302,14 @@
<![CDATA[
int i;
- if (!mdb_fetch_row(res_table->table)) {
+ if (!mdb_fetch_row(table->table)) {
RETURN_FALSE;
}
array_init(return_value);
- for (i = 0; i < res_table->num_cols; i++) {
- add_next_index_stringl(return_value, res_table->bound_values[i],
res_table->bound_lengths[i], 1);
+ for (i = 0; i < table->num_cols; i++) {
+ add_next_index_stringl(return_value, table->bound_values[i], table->bound_lengths[i],
1);
}
]]>
</code>
@@ -343,14 +335,14 @@
<![CDATA[
int i;
- if (!mdb_fetch_row(res_table->table)) {
+ if (!mdb_fetch_row(table->table)) {
RETURN_FALSE;
}
array_init(return_value);
- for (i = 0; i < res_table->num_cols; i++) {
- add_assoc_stringl(return_value, res_table->column_names[i],
res_table->bound_values[i], res_table->bound_lengths[i], 1);
+ for (i = 0; i < table->num_cols; i++) {
+ add_assoc_stringl(return_value, table->column_names[i], table->bound_values[i],
table->bound_lengths[i], 1);
}
]]>
@@ -368,7 +360,7 @@
</description>
<code>
<![CDATA[
- RETURN_LONG(mdb_rewind_table(res_table->table));
+ RETURN_LONG(mdb_rewind_table(table->table));
]]>
</code>
</function>
@@ -384,7 +376,7 @@
]]>
</description>
<code>
- zend_list_delete(Z_LVAL_P(table));
+ FREE_RESOURCE(table_res);
</code>
</function>
@@ -404,7 +396,7 @@
]]>
</description>
<code>
- RETURN_LONG(res_table->table->num_cols);
+ RETURN_LONG(table->table->num_cols);
</code>
</function>
@@ -424,7 +416,7 @@
]]>
</description>
<code>
- RETURN_LONG(res_table->table->num_rows);
+ RETURN_LONG(table->table->num_rows);
</code>
</function>
@@ -475,12 +467,12 @@
array_init(return_value);
- for (i = 0; i < res_table->table->num_cols; i++)
+ for (i = 0; i < table->table->num_cols; i++)
{
MAKE_STD_ZVAL(row);
array_init(row);
- col = g_ptr_array_index (res_table->table->columns, i);
+ col = g_ptr_array_index (table->table->columns, i);
add_assoc_string(row, "name", col->name, 1);
add_assoc_long(row, "type", col->col_type);
@@ -513,12 +505,12 @@
array_init(return_value);
- for (i = 0; i < res_table->table->num_idxs; i++)
+ for (i = 0; i < table->table->num_idxs; i++)
{
MAKE_STD_ZVAL(row);
array_init(row);
- idx = g_ptr_array_index (res_table->table->indices, i);
+ idx = g_ptr_array_index (table->table->indices, i);
add_assoc_long( row, "num", idx->index_num);
add_assoc_string(row, "name", idx->name, 1);
@@ -552,7 +544,7 @@
]]>
</description>
<code>
- RETURN_STRING(mdb_get_coltype_string (res_db->default_backend, typecode), 1);
+ RETURN_STRING(mdb_get_coltype_string (db->default_backend, typecode), 1);
</code>
</function>