fpc/packages/base/odbc
michael a3b72c1be8 Patch from Bram Kuijvenhoven
odbcsql.inc:
 - added SQLStatistics function and some associated constants
 
 odbcconn.pas:
 - implemented TODBCConnection.UpdateIndexDefs
 - implemented TODBCConnection.LoadBlobIntoBuffer
 - free Connection handle if connecting fails; fixes exception thrown on finalization if a connection failed
 - some support for reading wide string & guid fields (though untested)
 - added FmtArgs parameter to ODBCCheckResult; now a call to Format is needed only when an error actually occurred
 - if SQLGetDiagRec failed in ODBCCheckResult, this is reported in the constructed error message
 
 bufdataset.pas:
 - added code to free allocated blob buffers
 - fixed GetFieldSize for some field types

git-svn-id: trunk@7286 -
2007-05-05 23:22:14 +00:00
..
fpmake.inc + Initial implementation 2005-06-17 16:52:17 +00:00
fpmake.pp + Initial implementation 2005-06-17 16:52:17 +00:00
Makefile * re-added darwin/ppc64 support (please use up-to-date fpcmake) 2007-03-24 17:26:10 +00:00
Makefile.fpc + support for make -jX by marking all Makefiles that need to be executed 2007-01-27 11:05:18 +00:00
odbcsql.inc Patch from Bram Kuijvenhoven 2007-05-05 23:22:14 +00:00
odbcsql.pas * Compilable with Delphi 2007-02-23 13:08:11 +00:00
odbcsqldyn.pas * Compilable with Delphi 2007-02-23 13:08:11 +00:00
README * old logs removed and tabs fixed 2002-09-07 15:40:30 +00:00
testodbc.mdb * old logs removed and tabs fixed 2002-09-07 15:40:30 +00:00
testodbc.pp + Added odbcsqldyn.pp 2005-11-07 21:40:32 +00:00

Testing raw ODBC access:

For windows:
============

1. Compile testodbc. No options should be needed.

2. In the ODBC manager in the Windows Control Panel, create a new system or
   file DSN called 'FPC' with the 'Microsoft Access (*.mdb)' driver
   (At least MS-Access 97 or higher)

   Do not enter any username or password.
   
   The DSN should point to the testodbc.mdb database file provided with the
   testodbc.pp program.
   
3. Run the program.

For Linux:
==========

1. Change testodbc.pp and set the UserName and Password constants if needed.

2. Compile testodbc. No options should be needed.

3. Create a MySQL database and table with the mkdb script in the mysql
   directory. make sure the password and username as set in step 1 have
   access to this databse.

4. Install a DSN called FPC for the newly created database.
   (I used the unixODBC ODBCConfig program for this)

5. Run the program.

Enjoy !

Michael.