upgrading odbc files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 )
|
||||
|
||||
|
||||
Reference in New Issue
Block a user