From: Richard B. <rb...@us...> - 2005-03-15 11:15:03
|
Update of /cvsroot/jcframework/dotnet/Providers/AF_MySQL In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29967/Providers/AF_MySQL Modified Files: CMySqlDatabase.vb Log Message: Removed some obsolete code. Fixed MySQL parameters to use new syntax. Index: CMySqlDatabase.vb =================================================================== RCS file: /cvsroot/jcframework/dotnet/Providers/AF_MySQL/CMySqlDatabase.vb,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- CMySqlDatabase.vb 7 Feb 2005 13:22:07 -0000 1.2 +++ CMySqlDatabase.vb 15 Mar 2005 11:14:51 -0000 1.3 @@ -311,27 +311,28 @@ '''----------------------------------------------------------------------------- Public Overrides Function getParamHolder(ByVal i As Integer) As String 'Return "?" - Return "@p" & CStr(i) - End Function + 'Return "@p" & CStr(i) - this is the old version - only use if still referencing bytefx + Return "?p" & CStr(i) 'New syntax as of v1.04 of MySQLConnect/NET + End Function - Public Overrides Function getClauseStringTableAlias(ByVal table As String, ByVal owner As String, ByVal pAlias As String) As String - Return Me.m_name & "." & table & " as " & pAlias - End Function + Public Overrides Function getClauseStringTableAlias(ByVal table As String, ByVal owner As String, ByVal pAlias As String) As String + Return Me.m_name & "." & table & " as " & pAlias + End Function - Public Overloads Overrides Sub Dispose(ByVal disposing As Boolean) - If Not m_disposed Then - If disposing Then - Dim conn As CMySqlConnection - While ConnectionPool.Count > 0 - conn = ConnectionPool.Pop - conn.Dispose() - End While - m_disposed = True - End If - End If - End Sub + Public Overloads Overrides Sub Dispose(ByVal disposing As Boolean) + If Not m_disposed Then + If disposing Then + Dim conn As CMySqlConnection + While ConnectionPool.Count > 0 + conn = ConnectionPool.Pop + conn.Dispose() + End While + m_disposed = True + End If + End If + End Sub - Public Overrides Function supportsSelectOffsets() As Boolean - Return True - End Function + Public Overrides Function supportsSelectOffsets() As Boolean + Return True + End Function End Class |