mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Add missing TDBConnection.IsPostgreSQL method, used in previous commit.
This commit is contained in:
@@ -221,6 +221,7 @@ type
|
||||
function GetNetTypeGroup: TNetTypeGroup;
|
||||
function IsMySQL: Boolean;
|
||||
function IsMSSQL: Boolean;
|
||||
function IsPostgreSQL: Boolean;
|
||||
function IsMariaDB: Boolean;
|
||||
function IsPercona: Boolean;
|
||||
function IsTokudb: Boolean;
|
||||
@@ -1264,6 +1265,12 @@ begin
|
||||
end;
|
||||
|
||||
|
||||
function TConnectionParameters.IsPostgreSQL: Boolean;
|
||||
begin
|
||||
Result := NetTypeGroup = ngPgSQL;
|
||||
end;
|
||||
|
||||
|
||||
function TConnectionParameters.IsMariaDB: Boolean;
|
||||
begin
|
||||
Result := Pos('-mariadb', LowerCase(ServerVersion)) > 0;
|
||||
|
||||
Reference in New Issue
Block a user