ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/oup/rewrite/DataAccess/ConnectionManager.pas
(Generate patch)

Comparing oup/rewrite/DataAccess/ConnectionManager.pas (file contents):
Revision 100 by alloc, Mon Jan 22 23:05:45 2007 UTC vs.
Revision 101 by alloc, Tue Feb 20 20:43:29 2007 UTC

# Line 149 | Line 149 | begin
149  
150    ext := UpperCase(ExtractFileExt(FileName));
151  
152 <  if ext = 'ODB' then
152 >  if ext = '.OLDB' then
153      backend := DB_ADB
154 <  else if ext = 'DAT' then
154 >  else if ext = '.DAT' then
155      backend := DB_ONI
156    else
157    begin
# Line 172 | Line 172 | begin
172    begin
173      FLastID := FConnections[i].ConnectionID;
174      Result := FLastID;
175 +    Msg := SM_OK;
176    end
177    else
178    begin
# Line 179 | Line 180 | begin
180      FConnections[i].Free;
181      FConnections[i] := nil;
182      SetLength(FConnections, Length(FConnections) - 1);
183 <    Msg := SM_UnknownError;
183 >    Msg := CreateMsg;
184    end;
185   end;
186  

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)