|
@@ -85,7 +85,9 @@ type
|
|
|
FHostName : string;
|
|
|
FCharSet : string;
|
|
|
FRole : String;
|
|
|
-
|
|
|
+
|
|
|
+ function GetPort: cardinal;
|
|
|
+ procedure Setport(const AValue: cardinal);
|
|
|
protected
|
|
|
FConnOptions : TConnOptions;
|
|
|
procedure GetDBInfo(const SchemaType : TSchemaType; const SchemaObjectName, ReturnField : string; List: TStrings);
|
|
@@ -119,6 +121,7 @@ type
|
|
|
function GetSchemaInfoSQL(SchemaType : TSchemaType; SchemaObjectName, SchemaPattern : string) : string; virtual;
|
|
|
procedure LoadBlobIntoBuffer(FieldDef: TFieldDef;ABlobBuf: PBufBlobField; cursor: TSQLCursor; ATransaction : TSQLTransaction); virtual; abstract;
|
|
|
function RowsAffected(cursor: TSQLCursor): TRowsCount; virtual;
|
|
|
+ property port: cardinal read GetPort write Setport;
|
|
|
public
|
|
|
property Handle: Pointer read GetHandle;
|
|
|
destructor Destroy; override;
|
|
@@ -543,6 +546,19 @@ begin
|
|
|
end;
|
|
|
end;
|
|
|
|
|
|
+function TSQLConnection.GetPort: cardinal;
|
|
|
+begin
|
|
|
+ result := StrToIntDef(Params.Values['Port'],0);
|
|
|
+end;
|
|
|
+
|
|
|
+procedure TSQLConnection.Setport(const AValue: cardinal);
|
|
|
+begin
|
|
|
+ if AValue<>0 then
|
|
|
+ params.Values['Port']:=IntToStr(AValue)
|
|
|
+ else with params do if IndexOfName('Port') > -1 then
|
|
|
+ Delete(IndexOfName('Port'));
|
|
|
+end;
|
|
|
+
|
|
|
procedure TSQLConnection.GetDBInfo(const SchemaType : TSchemaType; const SchemaObjectName, ReturnField : string; List: TStrings);
|
|
|
|
|
|
var qry : TCustomSQLQuery;
|