tvplanit: Make the results of all calls to GetNextID an Int64 (for consistency with AddResource etc.).

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4686 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2016-06-07 17:56:21 +00:00
parent 018aa4e015
commit 04c64776ef
7 changed files with 13 additions and 13 deletions

View File

@ -71,7 +71,7 @@ type
constructor Create(AOwner: TComponent); override; constructor Create(AOwner: TComponent); override;
destructor Destroy; override; destructor Destroy; override;
function GetNextID(TableName: string): integer; override; function GetNextID(TableName: string): int64; override;
procedure Load; override; procedure Load; override;
procedure CreateTable(TableName: string); procedure CreateTable(TableName: string);
procedure CreateIndexDefs(const TableName : string; procedure CreateIndexDefs(const TableName : string;
@ -220,7 +220,7 @@ begin
end; end;
{=====} {=====}
function TVpAdvDataStore.GetNextID(TableName: string): Integer; function TVpAdvDataStore.GetNextID(TableName: string): Int64;
var var
Query: TAdsQuery; Query: TAdsQuery;
GotIt: Boolean; GotIt: Boolean;

View File

@ -228,7 +228,7 @@ type
procedure DeregisterAllWatchers; procedure DeregisterAllWatchers;
procedure DeregisterWatcher (Watcher : THandle); procedure DeregisterWatcher (Watcher : THandle);
function GetNextID(TableName: string): Integer; virtual; abstract; function GetNextID(TableName: string): Int64; virtual; abstract;
property Resources: TVpResources read FResources; property Resources: TVpResources read FResources;
procedure Load; virtual; procedure Load; virtual;
procedure LoadEvents; virtual; abstract; procedure LoadEvents; virtual; abstract;

View File

@ -79,7 +79,7 @@ type
constructor Create(AOwner: TComponent); override; constructor Create(AOwner: TComponent); override;
destructor Destroy; override; destructor Destroy; override;
function GetNextID(TableName: string): integer; override; function GetNextID(TableName: string): int64; override;
procedure Load; override; procedure Load; override;
procedure CreateTable(TableName: string); procedure CreateTable(TableName: string);
procedure CreateIndexDefs(const TableName : string; procedure CreateIndexDefs(const TableName : string;
@ -250,7 +250,7 @@ begin
end; end;
{=====} {=====}
function TVpBDEDataStore.GetNextID(TableName: string): Integer; function TVpBDEDataStore.GetNextID(TableName: string): Int64;
var var
Query: TQuery; Query: TQuery;
GotIt: Boolean; GotIt: Boolean;

View File

@ -75,7 +75,7 @@ type
constructor Create(AOwner: TComponent); override; constructor Create(AOwner: TComponent); override;
destructor Destroy; override; destructor Destroy; override;
function GetNextID(TableName: string): Integer; override; function GetNextID(TableName: string): Int64; override;
procedure Load; override; procedure Load; override;
procedure CreateTable(TableName: string); procedure CreateTable(TableName: string);
procedure CreateIndexDefs(const TableName : string; procedure CreateIndexDefs(const TableName : string;
@ -251,7 +251,7 @@ begin
end; end;
{=====} {=====}
function TVpDBISAMDataStore.GetNextID(TableName: string): Integer; function TVpDBISAMDataStore.GetNextID(TableName: string): Int64;
var var
Query: TDBISAMQuery; Query: TDBISAMQuery;
GotIt: Boolean; GotIt: Boolean;

View File

@ -77,7 +77,7 @@ type
constructor Create(AOwner: TComponent); override; constructor Create(AOwner: TComponent); override;
destructor Destroy; override; destructor Destroy; override;
function GetNextID(TableName: string): integer; override; function GetNextID(TableName: string): int64; override;
// procedure PurgeResource(Res: TVpResource); override; // procedure PurgeResource(Res: TVpResource); override;
procedure PurgeEvents(Res: TVpResource); override; procedure PurgeEvents(Res: TVpResource); override;
@ -138,7 +138,7 @@ begin
end; end;
{=====} {=====}
function TVpFF2DataStore.GetNextID(TableName: string): integer; function TVpFF2DataStore.GetNextID(TableName: string): int64;
begin begin
{ this is not used in the FlashFiler Datastore as the FlashFiler tables use } { this is not used in the FlashFiler Datastore as the FlashFiler tables use }
{ autoincrement fields } { autoincrement fields }

View File

@ -161,7 +161,7 @@ type
function GetFieldName(Mappings: TCollection; function GetFieldName(Mappings: TCollection;
VPField: string): string; VPField: string): string;
function GetNextID(TableName: string): Integer; override; function GetNextID(TableName: string): Int64; override;
{ These are published via the TVpDataSources class, which allows them to } { These are published via the TVpDataSources class, which allows them to }
{ be clustered in the Object Inspector Don't publish them individually } { be clustered in the Object Inspector Don't publish them individually }
@ -2031,7 +2031,7 @@ begin
end; end;
{=====} {=====}
function TVpFlexDataStore.GetNextID(TableName: string): Integer; function TVpFlexDataStore.GetNextID(TableName: string): Int64;
begin begin
{ The FlexDataStore has no idea what type of database you are connected to } { The FlexDataStore has no idea what type of database you are connected to }
{ beyond TDataset compatibility, so it cannot presume to generate record } { beyond TDataset compatibility, so it cannot presume to generate record }

View File

@ -106,7 +106,7 @@ type
// returns the next id for a store by doing an equivalent of select max(id) from table // returns the next id for a store by doing an equivalent of select max(id) from table
// and increasing the number by one // and increasing the number by one
function GetNextID(TableName: string): Integer; override; function GetNextID(TableName: string): Int64; override;
// post changes to the store // post changes to the store
procedure PostResources; override; procedure PostResources; override;
@ -333,7 +333,7 @@ begin
result:=Stores[TasksTableName].Dataset; result:=Stores[TasksTableName].Dataset;
end; end;
function TVPSQLDataStore.GetNextID(TableName: string): Integer; function TVPSQLDataStore.GetNextID(TableName: string): Int64;
var var
FldName : string; FldName : string;
begin begin