mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-15 00:26:03 +02:00
+ Initial import in cvs
This commit is contained in:
parent
3c9295f285
commit
12a4f24fdc
38
packages/base/mysql/mysql4impl.inc
Normal file
38
packages/base/mysql/mysql4impl.inc
Normal file
@ -0,0 +1,38 @@
|
||||
{
|
||||
Contains the non-external functions for MySQL v4.0
|
||||
}
|
||||
|
||||
function IS_PRI_KEY(n : longint) : Boolean;
|
||||
begin
|
||||
IS_PRI_KEY:=(n and PRI_KEY_FLAG)<>0;
|
||||
end;
|
||||
|
||||
|
||||
function IS_NOT_NULL(n : longint) : Boolean;
|
||||
begin
|
||||
IS_NOT_NULL:=(n and NOT_NULL_FLAG)<>0;
|
||||
end;
|
||||
|
||||
|
||||
function IS_BLOB(n : longint) : Boolean;
|
||||
begin
|
||||
IS_BLOB:=(n and BLOB_FLAG)<>0;
|
||||
end;
|
||||
|
||||
// This function is not used?!?!
|
||||
{function IS_NUM_FIELD(f : Pst_mysql_field) : Boolean;
|
||||
begin
|
||||
IS_NUM_FIELD:=((f^.flags) and NUM_FLAG)<>0;
|
||||
end;}
|
||||
|
||||
|
||||
function MYSQL_COUNT_ERROR : longint;
|
||||
begin
|
||||
MYSQL_COUNT_ERROR:= not (my_ulonglong(0));
|
||||
end;
|
||||
|
||||
|
||||
function mysql_reload(mysql : pmysql) : longint;
|
||||
begin
|
||||
mysql_reload:=mysql_refresh(mysql,REFRESH_GRANT);
|
||||
end;
|
Loading…
Reference in New Issue
Block a user