From bcc8292730a8884babeecd11deb816218d051fd1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 19 Jul 2004 14:28:42 +0000 Subject: [PATCH] Fixed DBI tags. --- plugins/include/dbi.inc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/plugins/include/dbi.inc b/plugins/include/dbi.inc index 5aa54d94..22f6edd0 100755 --- a/plugins/include/dbi.inc +++ b/plugins/include/dbi.inc @@ -17,6 +17,19 @@ #endif #define _dbi_included +enum Sql +{ + SQL_FAILED=0, + SQL_OK +} + +enum Result +{ + RESULT_FAILED=-1, + RESULT_NONE, + RESULT_OK +} + /* This will return a number equal to or below 0 on failure. * If it does fail, the error will be mirrored in dbi_error() * The return value will otherwise be a resource handle, not an @@ -78,7 +91,3 @@ native dbi_error(Sql:_sql, _error[], _len); */ native dbi_type(_type[], _len); -/* Wrapper for checking results - * to avoid tag mismatches - */ -native rescode(Result:res); \ No newline at end of file