mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:49:16 +02:00
* odbc changed, so I have to fix odbcconn.pas also (changed types)
git-svn-id: trunk@5454 -
This commit is contained in:
parent
10a035eeaf
commit
69c0f688c7
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2006/08/02]
|
# Don't edit, this file is generated by FPCMake Version 2.0.0 [2006/11/20]
|
||||||
#
|
#
|
||||||
default: all
|
default: all
|
||||||
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos sparc-linux sparc-netbsd sparc-solaris x86_64-linux x86_64-freebsd x86_64-win64 arm-linux arm-palmos arm-wince arm-gba powerpc64-linux
|
MAKEFILETARGETS=i386-linux i386-go32v2 i386-win32 i386-os2 i386-freebsd i386-beos i386-netbsd i386-solaris i386-qnx i386-netware i386-openbsd i386-wdosx i386-darwin i386-emx i386-watcom i386-netwlibc i386-wince m68k-linux m68k-freebsd m68k-netbsd m68k-amiga m68k-atari m68k-openbsd m68k-palmos powerpc-linux powerpc-netbsd powerpc-amiga powerpc-macos powerpc-darwin powerpc-morphos sparc-linux sparc-netbsd sparc-solaris x86_64-linux x86_64-freebsd x86_64-win64 arm-linux arm-palmos arm-wince arm-gba powerpc64-linux
|
||||||
|
@ -418,7 +418,7 @@ procedure TODBCConnection.DeAllocateCursorHandle(var cursor: TSQLCursor);
|
|||||||
begin
|
begin
|
||||||
// make sure we don't deallocate the cursor if the connection was lost already
|
// make sure we don't deallocate the cursor if the connection was lost already
|
||||||
if not Connected then
|
if not Connected then
|
||||||
(cursor as TODBCCursor).FSTMTHandle:=SQL_INVALID_HANDLE;
|
(cursor as TODBCCursor).FSTMTHandle:=SQL_NULL_HSTMT;
|
||||||
|
|
||||||
FreeAndNil(cursor); // the destructor of TODBCCursor frees the ODBC Statement handle
|
FreeAndNil(cursor); // the destructor of TODBCCursor frees the ODBC Statement handle
|
||||||
end;
|
end;
|
||||||
@ -888,7 +888,7 @@ begin
|
|||||||
|
|
||||||
FBlobStreams.Free;
|
FBlobStreams.Free;
|
||||||
|
|
||||||
if FSTMTHandle<>SQL_INVALID_HANDLE then
|
if FSTMTHandle<>SQL_NULL_HSTMT then
|
||||||
begin
|
begin
|
||||||
// deallocate statement handle
|
// deallocate statement handle
|
||||||
Res:=SQLFreeHandle(SQL_HANDLE_STMT, FSTMTHandle);
|
Res:=SQLFreeHandle(SQL_HANDLE_STMT, FSTMTHandle);
|
||||||
|
Loading…
Reference in New Issue
Block a user