aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-06-21 09:56:35 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-06-21 09:56:35 +0000
commit6655860bbb4fdda6f7feb4953357cc00b80f6649 (patch)
treeb1e2c741a254be60a7c75521e42ed0c8a2eca845 /src
parent13d89e6bc712dc43dbc1ba61c79612e51ba96470 (diff)
downloadellinika-6655860bbb4fdda6f7feb4953357cc00b80f6649.tar.gz
ellinika-6655860bbb4fdda6f7feb4953357cc00b80f6649.tar.bz2
(sql_num_tuples): New (kludgy) function.
git-svn-id: file:///home/puszcza/svnroot/ellinika/trunk@158 941c8c0f-9102-463b-b60b-cd22ce0e6858
Diffstat (limited to 'src')
-rw-r--r--src/sql.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sql.c b/src/sql.c
index 70c1fd9..8c34696 100644
--- a/src/sql.c
+++ b/src/sql.c
@@ -113,3 +113,9 @@ sql_query_n(unsigned long *pret, char *fmt, ...)
}
return rc;
}
+
+size_t
+sql_num_tuples()
+{
+ return mysql_num_rows(result);
+}

Return to:

Send suggestions and report system problems to the System administrator.