1 {*********************************************************}
3 { Zeos Database Objects }
4 { Delphi plain driver interface to ADO }
6 { Originally written by Janos Fegyverneki }
8 {*********************************************************}
10 {@********************************************************}
11 { Copyright (c) 1999-2012 Zeos Development Group }
13 { License Agreement: }
15 { This library is distributed in the hope that it will be }
16 { useful, but WITHOUT ANY WARRANTY; without even the }
17 { implied warranty of MERCHANTABILITY or FITNESS FOR }
18 { A PARTICULAR PURPOSE. See the GNU Lesser General }
19 { Public License for more details. }
21 { The source code of the ZEOS Libraries and packages are }
22 { distributed under the Library GNU General Public }
23 { License (see the file COPYING / COPYING.ZEOS) }
24 { with the following modification: }
25 { As a special exception, the copyright holders of this }
26 { library give you permission to link this library with }
27 { independent modules to produce an executable, }
28 { regardless of the license terms of these independent }
29 { modules, and to copy and distribute the resulting }
30 { executable under terms of your choice, provided that }
31 { you also meet, for each linked independent module, }
32 { the terms and conditions of the license of that module. }
33 { An independent module is a module which is not derived }
34 { from or based on this library. If you modify this }
35 { library, you may extend this exception to your version }
36 { of the library, but you are not obligated to do so. }
37 { If you do not wish to do so, delete this exception }
38 { statement from your version. }
41 { The project web site is located on: }
42 { http://zeos.firmos.at (FORUM) }
43 { http://sourceforge.net/p/zeoslib/tickets/ (BUGTRACKER)}
44 { svn://svn.code.sf.net/p/zeoslib/code-0/trunk (SVN) }
46 { http://www.sourceforge.net/projects/zeoslib. }
49 { Zeos Development Group. }
50 {********************************************************@}
58 uses ZClasses, ZPlainDriver;
61 TZAdoPlainDriver = class (TZAbstractPlainDriver, IZPlainDriver)
63 function IsAnsiDriver: Boolean; override;
67 procedure LoadCodePages; override;
68 function GetProtocol: string; override;
69 function GetDescription: string; override;
70 procedure Initialize(const Location: String = ''); override;
71 function Clone: IZPlainDriver; override;
76 uses ZCompatibility, ZEncoding;
78 procedure TZAdoPlainDriver.LoadCodePages;
80 AddCodePage('CP_ADO', 0, ceAnsi, ZDefaultSystemCodePage,'',1, False);
83 function TZAdoPlainDriver.IsAnsiDriver: Boolean;
88 constructor TZAdoPlainDriver.Create;
93 function TZAdoPlainDriver.GetProtocol: string;
98 function TZAdoPlainDriver.GetDescription: string;
100 Result := 'Native driver for Microsoft ADO';
103 procedure TZAdoPlainDriver.Initialize(const Location: String = '');
107 function TZAdoPlainDriver.Clone: IZPlainDriver;