Some features!

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Nikolai
Posts: 5
Joined: Fri 04 Feb 2005 14:26
Location: Russia, Ufa
Contact:

Some features!

Post by Nikolai » Thu 07 Jul 2005 06:56

Is this possible to add next features or post comment about my changes source code:

1) CRParser.pas

Code: Select all

function TParser.IsInlineComment(Pos: integer): boolean;
begin
Result := (TextLength >= Pos + 2) and (Text[Pos] = '/') and (Text[Pos + 1] = '/');
end;
??? inline comment in T-SQL started from "--" - not "//"
I think, right code will:

Code: Select all

function TParser.IsInlineComment(Pos: integer): boolean;
begin
//*** Changed by Nikolai
  Result := (TextLength >= Pos + 2) and (Text[Pos] = '-') and (Text[Pos + 1] = '-');
end;
-----------

2) What way to add mouse cursor "clock" while fetching results:
now I'm add next code in CRAccess.pas

Code: Select all

procedure TCRRecordSet.FetchAll;
var OC: TCursor; //*** <- Added by Nikolai
begin
  OC := Screen.Cursor;  Screen.Cursor:=crSQLWait;  try  //*** <- Added by Nikolai
  while Fetch do;
  finally  Screen.Cursor:=OC;  end; //*** <- Added by Nikolai
end;

3) MemData.pas

Code: Select all

  function MatchesMask(St: string; Mask: string): boolean;
  const
//*** Changed by Nikolai
    Wildcard = '%';
    WildcardOne = '~';
//  Wildcard = '*';
//  WildcardOne = '_';
- I'm replace wilcards in T-SQL standard format!

Regards,
Nikolai Bochkarev,
registered user

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 07 Jul 2005 12:27

> 1) CRParser.pas

It has already done in TMyParser.

> 2) What way to add mouse cursor "clock" while fetching results:

This code has already implemented in MyDAC. Just add unit MydacVcl to "uses".

> 3) I'm replace wilcards in T-SQL standard format!

This changing can cause significant inconvenience for already existent programs that use MyDAC.

In future all questions related with discussing source code of MyDAC would be better to discuss in private correspondence by email (mydac*crlab*com).

Guest

Post by Guest » Thu 07 Jul 2005 14:46

Ikar wrote:It has already done in TMyParser.
...
This code has already implemented in MyDAC. Just add unit MydacVcl to "uses".
Sorry, but I'm don't understand how my SDAC linked with MyDAC?
I thought that this two different products...

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Post by Ikar » Thu 07 Jul 2005 14:51

Sorry, this is misprint.

I mean SDAC, TMSParser and SdacVcl

Guest

Post by Guest » Thu 07 Jul 2005 16:03

Ikar wrote:Sorry, this is misprint.

I mean SDAC, TMSParser and SdacVcl
Ok! :-)
Thank you for respond!

Post Reply