mdaems, you are probably affiliated with the Zeoslib development team, aren't you ?
Now I tell you exactly what I did in Delphi 5 :
1. Extracted zeosdbo-6.5.1-alpha_cvs_13-10-2005.zip into separate folder.
2. Opened packages/delphi5/ZeosDbo.bpg.
3. Compile all failed at ZDbc.bpl with DateUtils.dcu not found in ZDbcMySqlStatement.pas
4. Removed DateUtils from uses section, changed ZDbcMySqlStatement.pas code from this :
Code: Select all
begin
DecodeDateTime(SoftVarManager.GetAsDateTime(Value),
AYear, AMonth, ADay, AHour, AMinute, ASecond, AMilliSecond);
Result := '''' + Format('%0.4d-%0.2d-%0.2d',
[AYear, AMonth, ADay]) + '''';
end;
stTime:
begin
DecodeDateTime(SoftVarManager.GetAsDateTime(Value),
AYear, AMonth, ADay, AHour, AMinute, ASecond, AMilliSecond);
Result := '''' + Format('%0.2d:%0.2d:%0.2d',
[AHour, AMinute, ASecond]) + '''';
end;
stTimestamp:
begin
DecodeDateTime(SoftVarManager.GetAsDateTime(Value),
AYear, AMonth, ADay, AHour, AMinute, ASecond, AMilliSecond);
Result := '''' + Format('%0.4d-%0.2d-%0.2d %0.2d:%0.2d:%0.2d',
[AYear, AMonth, ADay, AHour, AMinute, ASecond]) + '''';
end;
to this :
Code: Select all
begin
DecodeDate(SoftVarManager.GetAsDateTime(Value),
AYear, AMonth, ADay);
Result := '''' + Format('%0.4d-%0.2d-%0.2d',
[AYear, AMonth, ADay]) + '''';
end;
stTime:
begin
DecodeTime(SoftVarManager.GetAsDateTime(Value),
AHour, AMinute, ASecond, AMilliSecond);
Result := '''' + Format('%0.2d:%0.2d:%0.2d',
[AHour, AMinute, ASecond]) + '''';
end;
stTimestamp:
begin
DecodeDate(SoftVarManager.GetAsDateTime(Value),
AYear, AMonth, ADay);
DecodeTime(SoftVarManager.GetAsDateTime(Value),
AHour, AMinute, ASecond, AMilliSecond);
Result := '''' + Format('%0.4d-%0.2d-%0.2d %0.2d:%0.2d:%0.2d',
[AYear, AMonth, ADay, AHour, AMinute, ASecond]) + '''';
end;
5. ZDbcMySqlStatement.pas compiled, but further errors came.
6. [Error] ZDbc.dpk(85): 'END' expected but identifier 'ZDbcASAUtils' found
Code: Select all
ZDbcSqLiteStatement in '..\..\src\dbc\ZDbcSqLiteStatement.pas',
ZDbcSqLiteResultSet in '..\..\src\dbc\ZDbcSqLiteResultSet.pas',
ZDbcSqLiteMetadata in '..\..\src\dbc\ZDbcSqLiteMetadata.pas'; <<<---
ZDbcASAUtils in '..\..\src\dbc\ZDbcASAUtils.pas',
ZDbcASAMetadata in '..\..\src\dbc\ZDbcASAMetadata.pas',
ZDbcASAResultSet in '..\..\src\dbc\ZDbcASAResultSet.pas',
ZDbcASAStatement in '..\..\src\dbc\ZDbcASAStatement.pas',
ZDbcASA in '..\..\src\dbc\ZDbcASA.pas';
end.
7. Changed the semicolon to colon.
8. [Fatal Error] ZDbcASA.pas(44): File not found: 'Types.dcu'
Code: Select all
unit ZDbcASA;
interface
{$I ZDbc.inc}
uses
ZCompatibility, Types, Classes, Contnrs, SysUtils, ZDbcIntfs,
ZDbcConnection, ZPlainASADriver, ZSysUtils, ZTokenizer,
ZDbcGenericResolver, ZGenericSqlAnalyser;
type
9. Removed Types from uses section with fear from consequences ...
10. [Fatal Error] ZDbcASAUtils.pas(247): File not found: 'Variants.dcu'
Code: Select all
implementation
uses Variants, ZMessages, ZDbcCachedResultSet, Math;
{ TZASASQLDA }
11. Removed Variants with even stronger fear ...
12. :
Code: Select all
[Warning] ZDbcASAUtils.pas(477): FOR-Loop variable 'Result' may be undefined after loop
[Error] ZDbcASAUtils.pas(1010): Undeclared identifier: 'varWord'
[Error] ZDbcASAUtils.pas(1012): Undeclared identifier: 'varLongWord'
[Error] ZDbcASAUtils.pas(1012): Duplicate case label
[Error] ZDbcASAUtils.pas(1022): Undeclared identifier: 'varShortInt'
[Error] ZDbcASAUtils.pas(1022): Duplicate case label
[Error] ZDbcASAUtils.pas(1110): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1110): Pointer type required
[Error] ZDbcASAUtils.pas(1148): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1148): Pointer type required
[Error] ZDbcASAUtils.pas(1186): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1186): Pointer type required
[Error] ZDbcASAUtils.pas(1259): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1259): Pointer type required
[Error] ZDbcASAUtils.pas(1297): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1297): Pointer type required
[Error] ZDbcASAUtils.pas(1335): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1335): Pointer type required
[Error] ZDbcASAUtils.pas(1373): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1373): Pointer type required
[Error] ZDbcASAUtils.pas(1434): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1434): Pointer type required
[Error] ZDbcASAUtils.pas(1442): Too many actual parameters
[Error] ZDbcASAUtils.pas(1471): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1471): Pointer type required
[Error] ZDbcASAUtils.pas(1549): Undeclared identifier: 'PLongWord'
[Error] ZDbcASAUtils.pas(1549): Pointer type required
[Fatal Error] ZDbcASAMetadata.pas(200): Could not compile used unit 'ZDbcASAUtils'
13. [Error] Too many errors, process halted.
14. Neither types.dcu nor Variants.dcu was not found in a full install to C:\Program Files\Borland\Delphi5\
This was conducted with the 13-10-2005 CVS release. The int64/variant conversion error in the first message was with one of the other files.
15. What did I miss or done wrong and what's the solution ?