upgrading odbc files

This commit is contained in:
Alexander S.Kresin
1999-10-21 12:21:31 +00:00
parent 1fd873d347
commit 0bf363bba8
2 changed files with 11 additions and 3 deletions

View File

@@ -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

View File

@@ -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 )