Fixed DBI tags.
This commit is contained in:
parent
3439fac417
commit
bcc8292730
@ -17,6 +17,19 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _dbi_included
|
#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.
|
/* This will return a number equal to or below 0 on failure.
|
||||||
* If it does fail, the error will be mirrored in dbi_error()
|
* If it does fail, the error will be mirrored in dbi_error()
|
||||||
* The return value will otherwise be a resource handle, not an
|
* 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);
|
native dbi_type(_type[], _len);
|
||||||
|
|
||||||
/* Wrapper for checking results
|
|
||||||
* to avoid tag mismatches
|
|
||||||
*/
|
|
||||||
native rescode(Result:res);
|
|
Loading…
Reference in New Issue
Block a user