[fpc-devel] ODBCConn patch: UpdateIndexDefs etc.
Bram Kuijvenhoven
kuifwaremailinglists at xs4all.nl
Wed May 2 12:42:38 CEST 2007
Hi!
Attached is a patch that implements TODBCConnection.UpdateIndexDefs. I test=
ed it with a TDBGrid; SQLQuery.ApplyUpdates now works with TODBCConnection!
I zipped it to reduce the size. There are two patches:
odbcsql.inc:
- added SQLStatistics function and some associated constants
odbcconn.pas:
- implemented TODBCConnection.UpdateIndexDefs
- free Connection handle if connecting fails; fixes exception thrown on fin=
alization if a connection failed
- added FmtArgs parameter to ODBCCheckResult; now a call to Format is neede=
d only when an error actually occurred
- if SQLGetDiagRec failed in ODBCCheckResult, this is reported in the const=
ructed error message
BTW I started a page on the wiki about ODBCConn at http://wiki.freepascal.o=
rg/ODBCConn.
Regards,
Bram
-------------- next part --------------
A non-text attachment was scrubbed...
Name: odbc_patches.zip
Type: application/octet-stream
Size: 6110 bytes
Desc: not available
Url : http://lists.freepascal.org/lists/fpc-devel/attachments/20070502/319c=
f66b/odbc_patches.obj
More information about the fpc-devel
mailing list