From 0bf363bba83d66c8f33343728d4ffb35c291ccd4 Mon Sep 17 00:00:00 2001 From: "Alexander S.Kresin" Date: Thu, 21 Oct 1999 12:21:31 +0000 Subject: [PATCH] upgrading odbc files --- harbour/ChangeLog | 5 +++++ harbour/contrib/odbc/todbc.prg | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e425c99c1c..11ff5a7da2 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,8 @@ +19991021-16:02 GMT+3 Alexander Kresin + * contrib/odbc/todbc.prg + * there was an infinite loop in TOdbc():New(), + * now it works correctly. + 19991021-09:14 GMT+3 Alexander Kresin + contrib/odbc/todbc.prg + contrib/odbc/readme.txt diff --git a/harbour/contrib/odbc/todbc.prg b/harbour/contrib/odbc/todbc.prg index ead6b8900c..5970f9830a 100644 --- a/harbour/contrib/odbc/todbc.prg +++ b/harbour/contrib/odbc/todbc.prg @@ -1,3 +1,6 @@ +/* + * $Id$ + */ /* * Harbour Project source code: * ODBC Access Class @@ -130,7 +133,7 @@ METHOD New( cODBCStr ) CLASS TODBC LOCAL xBuf - WHILE .t. +// WHILE .t. ::cODBCStr := cODBCStr ::Active := .f. ::Fields := {} @@ -144,7 +147,7 @@ METHOD New( cODBCStr ) CLASS TODBC ::nRetCode := nRet alert( "SQLAllocEnvironment Error" ) alert( ::SQLErrorMessage() ) - EXIT +// EXIT ENDIF @@ -153,7 +156,7 @@ METHOD New( cODBCStr ) CLASS TODBC SQLDriverC( ::hDbc, ::cODBCStr, @xBuf ) // Connects to Driver ::cODBCRes := xBuf - ENDDO +// ENDDO RETURN ( Self )