diff options
author | Raja R Harinath <harinath@hurrynot.org> | 2010-07-26 00:19:54 +0400 |
---|---|---|
committer | Raja R Harinath <harinath@hurrynot.org> | 2010-07-26 00:50:13 +0400 |
commit | cd51491631380ed56723fdfc66945213f9864b5a (patch) | |
tree | 05ebbd8cd16e55aae7d81003a3ba0c803eab8e1f /mcs/class/IBM.Data.DB2 | |
parent | 5c94b81517e934060ca88474eaefb2b516be734a (diff) |
Fix a few cases of mixed line-endings
This is a scripted conversion of mixed line-ending files to LF-only or CRLF-only
based on which patch is smaller. I used a threshold of upto a quarter of the
lines to determine whether to keep the patch or not.
Diffstat (limited to 'mcs/class/IBM.Data.DB2')
12 files changed, 509 insertions, 510 deletions
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/.gitattributes b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/.gitattributes index 9b773f866cd..c79a99b2463 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/.gitattributes +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/.gitattributes @@ -1,6 +1,5 @@ /DB2ClientUtils.cs -crlf /DB2Command.cs -crlf -/DB2CommandBuilder.cs -crlf /DB2Connection.cs -crlf /DB2ConnectionPool.cs -crlf /DB2ConnectionSettings.cs -crlf diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2CommandBuilder.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2CommandBuilder.cs index e917fcf7e48..9e16d6ea1a4 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2CommandBuilder.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2CommandBuilder.cs @@ -46,7 +46,7 @@ namespace IBM.Data.DB2 DataAdapter = adapter; } - public DB2DataAdapter DataAdapter
+ public DB2DataAdapter DataAdapter { get { @@ -77,7 +77,7 @@ namespace IBM.Data.DB2 } } - public string QuotePrefix
+ public string QuotePrefix { get { @@ -87,7 +87,7 @@ namespace IBM.Data.DB2 { } } - public string QuoteSuffix
+ public string QuoteSuffix { get { @@ -119,7 +119,7 @@ namespace IBM.Data.DB2 values += ", "; } - if(!((bool)dr["IsAutoIncrement"]))
+ if(!((bool)dr["IsAutoIncrement"])) { fields += column.ColumnName; //values += ":v_" + column.ColumnName; @@ -135,8 +135,8 @@ namespace IBM.Data.DB2 { //DataColumn column = dt.Columns[i]; DataRow dr = dt.Rows[i]; - DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"]));
- if (!((bool)dr["IsAutoIncrement"]))
+ DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"])); + if (!((bool)dr["IsAutoIncrement"])) { DB2Parameter aux = new DB2Parameter("v_" + column.ColumnName, column.DataType); aux.Direction = ParameterDirection.Input; @@ -158,7 +158,7 @@ namespace IBM.Data.DB2 string wheres = ""; for (int i = 0; i < dt.Rows.Count; i++) { - if (sets.Length != 0 && !((bool)dt.Rows[i]["IsAutoIncrement"]))
+ if (sets.Length != 0 && !((bool)dt.Rows[i]["IsAutoIncrement"])) { sets += ", "; } @@ -180,7 +180,7 @@ namespace IBM.Data.DB2 { DataRow dr = dt.Rows[i]; DataColumn column = new DataColumn((string)dr["ColumnName"], DB2TypeConverter.GetManagedType((int)dr["ProviderType"])); - if (!((bool)dr["IsAutoIncrement"]))
+ if (!((bool)dr["IsAutoIncrement"])) { DB2Parameter aux = new DB2Parameter("s_" + column.ColumnName, column.DataType); aux.Direction = ParameterDirection.Input; @@ -251,7 +251,7 @@ namespace IBM.Data.DB2 deleteCommand = null; } - private DataTable GetSchema()
+ private DataTable GetSchema() { dataAdapter.SelectCommand.Connection.Open(); DB2Command cmd = new DB2Command(dataAdapter.SelectCommand.CommandText, dataAdapter.SelectCommand.Connection); diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionPool.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionPool.cs index cd92983fb9c..99ee3bfacd5 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionPool.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionPool.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Collections;
using System.Text;
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionSettings.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionSettings.cs index 988dcc43189..92c8973d272 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionSettings.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ConnectionSettings.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Runtime.InteropServices;
using System.Text;
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Constants.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Constants.cs index a223d4f032c..2043af59dee 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Constants.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Constants.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
namespace IBM.Data.DB2
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2DataReader.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2DataReader.cs index e08986bc946..aaf3e5c2ada 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2DataReader.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2DataReader.cs @@ -1,45 +1,45 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// -using System; -using System.Collections; -using System.Data; -using System.Runtime.InteropServices; -using System.Globalization; -using System.Text; - -namespace IBM.Data.DB2 -{ - /// <summary> - /// Summary description for DB2ClientDataReader. - /// DB2ClientDataReader. - /// </summary> - public sealed class DB2DataReader : MarshalByRefObject, IDataReader - { +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+using System;
+using System.Collections;
+using System.Data;
+using System.Runtime.InteropServices;
+using System.Globalization;
+using System.Text;
+
+namespace IBM.Data.DB2
+{
+ /// <summary>
+ /// Summary description for DB2ClientDataReader.
+ /// DB2ClientDataReader.
+ /// </summary>
+ public sealed class DB2DataReader : MarshalByRefObject, IDataReader
+ {
private struct ColumnInfo
{
public string Colname;
public int Sqltype;
- } - + }
+
private object[] _resultSet;
private ColumnInfo[] columnInfo;
private Hashtable columnsNames;
@@ -54,8 +54,8 @@ namespace IBM.Data.DB2 private CommandBehavior behavior;
private bool hasRows;
private bool skipReadOnce;
- - +
+
#region Constructors and destructors
/// <summary>
///
@@ -78,7 +78,7 @@ namespace IBM.Data.DB2 }
#endregion
- +
private void GetFieldCountAndAffectedRows()
{
short sqlRet;
@@ -93,64 +93,64 @@ namespace IBM.Data.DB2 sqlRet = DB2CLIWrapper.SQLNumResultCols(hwndStmt, out colCount);
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "DB2ClientDataReader - SQLNumResultCols", db2Conn);
fieldCount = colCount;
- } - - #region Properties - - #region Depth property - /// - ///Depth of nesting for the current row, need to figure out what this translates into - ///with DB2. - /// - private int depth = 0; - public int Depth - { - get - { + }
+
+ #region Properties
+
+ #region Depth property
+ ///
+ ///Depth of nesting for the current row, need to figure out what this translates into
+ ///with DB2.
+ ///
+ private int depth = 0;
+ public int Depth
+ {
+ get
+ {
if(isClosed)
{
throw new InvalidOperationException("Reader is closed");
- } - return depth; - } - } - #endregion - - #region IsClosed property - /// <summary> - /// True if the reader is closed. - /// </summary> - private bool isClosed = true; - public bool IsClosed - { - get - { - return isClosed; - } - } - #endregion - - #region RecordsAffected property - /// - /// Number of records affected by this operation. Will be zero until we close the - /// reader - /// - - public int RecordsAffected - { - get - { - return recordsAffected; - } - } - #endregion - - #endregion - - #region Methods - - - + }
+ return depth;
+ }
+ }
+ #endregion
+
+ #region IsClosed property
+ /// <summary>
+ /// True if the reader is closed.
+ /// </summary>
+ private bool isClosed = true;
+ public bool IsClosed
+ {
+ get
+ {
+ return isClosed;
+ }
+ }
+ #endregion
+
+ #region RecordsAffected property
+ ///
+ /// Number of records affected by this operation. Will be zero until we close the
+ /// reader
+ ///
+
+ public int RecordsAffected
+ {
+ get
+ {
+ return recordsAffected;
+ }
+ }
+ #endregion
+
+ #endregion
+
+ #region Methods
+
+
+
#region Close method
public void Close()
@@ -197,10 +197,10 @@ namespace IBM.Data.DB2 Dispose(false);
}
- #endregion - - #region GetSchemaTable - + #endregion
+
+ #region GetSchemaTable
+
public DataTable GetSchemaTable()
{
if(isClosed)
@@ -378,11 +378,11 @@ namespace IBM.Data.DB2 }
}
return _schemaTable;
- } - #endregion - - #region NextResult - + }
+ #endregion
+
+ #region NextResult
+
public bool NextResult()
{
hasRows = false;
@@ -399,11 +399,11 @@ namespace IBM.Data.DB2 return false;
DB2ClientUtils.DB2CheckReturn(sqlRet, DB2Constants.SQL_HANDLE_STMT, hwndStmt, "Db2ClientDataReader - SQLMoreResults", db2Conn);
return true;
- } - #endregion - - #region Read - + }
+ #endregion
+
+ #region Read
+
#if !NET_1_0
public bool HasRows
{
@@ -418,8 +418,8 @@ namespace IBM.Data.DB2 return hasRows;
}
}
-#endif - +#endif
+
public bool Read()
{
if (isClosed)
@@ -444,10 +444,10 @@ namespace IBM.Data.DB2 hasData = true;
return true;
- } - #endregion - - #region GetColumnInfo + }
+ #endregion
+
+ #region GetColumnInfo
private void GetColumnInfo()
{
if(isClosed)
@@ -477,22 +477,22 @@ namespace IBM.Data.DB2 }
- } - #endregion - - #region Describe/Bind/Fetch functions - /// - ///Broke these out so that we can use different paths for Immediate executions and Prepared executions - /// <summary> - /// Does the describe and bind steps for the query result set. Called for both immediate and prepared queries. - /// </summary> - -/// <summary> -/// FetchResults does what it says. -/// </summary> -/// <param name="dbVals"></param> -/// <param name="sqlLen_or_IndPtr"></param> -/// <param name="_resultSet"></param> + }
+ #endregion
+
+ #region Describe/Bind/Fetch functions
+ ///
+ ///Broke these out so that we can use different paths for Immediate executions and Prepared executions
+ /// <summary>
+ /// Does the describe and bind steps for the query result set. Called for both immediate and prepared queries.
+ /// </summary>
+
+/// <summary>
+/// FetchResults does what it says.
+/// </summary>
+/// <param name="dbVals"></param>
+/// <param name="sqlLen_or_IndPtr"></param>
+/// <param name="_resultSet"></param>
private int FieldNameLookup(DataTable _schemaTable, string name)
{
for(int i = 0; i < _schemaTable.Rows.Count; i++)
@@ -504,16 +504,16 @@ namespace IBM.Data.DB2 }
}
return -1;
- } - - #endregion - - #region IDataRecord Interface - ///Code for the IDataRecord interface - /// - #region FieldCount - /// - /// + }
+
+ #endregion
+
+ #region IDataRecord Interface
+ ///Code for the IDataRecord interface
+ ///
+ #region FieldCount
+ ///
+ ///
public int FieldCount
{
get
@@ -523,10 +523,10 @@ namespace IBM.Data.DB2 return fieldCount;
}
- } - #endregion - - #region Item accessors + }
+ #endregion
+
+ #region Item accessors
public object this[string name]
{
get
@@ -576,9 +576,9 @@ namespace IBM.Data.DB2 }
throw new NotImplementedException("Unknown SQL type " + columnInfo[col].Sqltype);
}
- } - #endregion - + }
+ #endregion
+
#region GetBytes
///
/// GetBytes, return a stream of bytes
@@ -602,8 +602,8 @@ namespace IBM.Data.DB2 return sourceArray.LongLength;
#endif
}
- #endregion - + #endregion
+
#region GetChars
///
///GetChars, returns char array
@@ -619,10 +619,10 @@ namespace IBM.Data.DB2 }
return (long)sourceString.Length;
}
- #endregion - - #region GetBoolean method - + #endregion
+
+ #region GetBoolean method
+
public Boolean GetBoolean(int col)
{
return (Boolean)GetBooleanInternal(col);
@@ -655,9 +655,9 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - #endregion - + }
+ #endregion
+
#region GetGuid
///
/// GetDateTime method
@@ -696,12 +696,12 @@ namespace IBM.Data.DB2 return _resultSet[col];
}
- #endregion - - #region GetByte - /// - ///GetByte - /// + #endregion
+
+ #region GetByte
+ ///
+ ///GetByte
+ ///
public Byte GetByte(int col)
{
return (Byte)GetByteInternal(col);
@@ -734,13 +734,13 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - #endregion - - #region GetChar - /// - ///GetChar, return column as a char - /// + }
+ #endregion
+
+ #region GetChar
+ ///
+ ///GetChar, return column as a char
+ ///
public Char GetChar(int col)
{
return (Char)GetCharInternal(col);
@@ -773,25 +773,25 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - #endregion - - #region GetData - /// - /// GetData method - /// - public IDataReader GetData(int col) - { - //Have to research this one, not quite sure what the docs mean - //DB2 does have some structured data types, is that what this is for? - throw new NotSupportedException(); - } - #endregion - - #region GetDataTypeName - /// - ///GetDataTypeName return the type of data - /// + }
+ #endregion
+
+ #region GetData
+ ///
+ /// GetData method
+ ///
+ public IDataReader GetData(int col)
+ {
+ //Have to research this one, not quite sure what the docs mean
+ //DB2 does have some structured data types, is that what this is for?
+ throw new NotSupportedException();
+ }
+ #endregion
+
+ #region GetDataTypeName
+ ///
+ ///GetDataTypeName return the type of data
+ ///
public string GetDataTypeName(int col)
{
if(columnInfo == null)
@@ -836,14 +836,14 @@ namespace IBM.Data.DB2 return "VARBINARY";
}
throw new NotImplementedException("Unknown SQL type " + columnInfo[col].Sqltype);
- } - #endregion - - #region GetDateTime - /// - /// GetDateTime method - /// - + }
+ #endregion
+
+ #region GetDateTime
+ ///
+ /// GetDateTime method
+ ///
+
public DateTime GetDateTime(int col)
{
return (DateTime)GetDateTimeInternal(col);
@@ -883,9 +883,9 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - #endregion - + }
+ #endregion
+
#region GetDate
///
/// GetDate method
@@ -927,8 +927,8 @@ namespace IBM.Data.DB2 return _resultSet[col];
}
- #endregion - + #endregion
+
#region GetTime
///
/// GetTime method
@@ -974,13 +974,13 @@ namespace IBM.Data.DB2 return _resultSet[col];
}
- #endregion - - - #region GetDecimal - /// - ///GetDecimal method - /// + #endregion
+
+
+ #region GetDecimal
+ ///
+ ///GetDecimal method
+ ///
public Decimal GetDecimal(int col)
{
@@ -1020,13 +1020,13 @@ namespace IBM.Data.DB2 // }
// }
return _resultSet[col];
- } - #endregion - - #region GetDouble - /// - /// GetDouble - /// + }
+ #endregion
+
+ #region GetDouble
+ ///
+ /// GetDouble
+ ///
public Double GetDouble(int col)
{
return (Double)GetDoubleInternal(col);
@@ -1059,13 +1059,13 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - #endregion - - #region GetFieldType - /// - /// Type GetFieldType - /// + }
+ #endregion
+
+ #region GetFieldType
+ ///
+ /// Type GetFieldType
+ ///
public Type GetFieldType(int col)
{
if(columnInfo == null)
@@ -1073,13 +1073,13 @@ namespace IBM.Data.DB2 GetColumnInfo();
}
return GetManagedType(columnInfo[col].Sqltype);
- } - #endregion - - #region GetFloat - /// - /// GetFloat - /// + }
+ #endregion
+
+ #region GetFloat
+ ///
+ /// GetFloat
+ ///
public float GetFloat(int col)
{
return (float)GetFloatInternal(col);
@@ -1112,13 +1112,13 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - #endregion - - #region The GetInt?? series - /// - ///GetInt16 - /// + }
+ #endregion
+
+ #region The GetInt?? series
+ ///
+ ///GetInt16
+ ///
public short GetInt16(int col)
{
return (short)GetInt16Internal(col);
@@ -1228,13 +1228,13 @@ namespace IBM.Data.DB2 }
return _resultSet[col];
}
- - #endregion - - #region GetName - /// - ///GetName, returns the name of the field - /// +
+ #endregion
+
+ #region GetName
+ ///
+ ///GetName, returns the name of the field
+ ///
public string GetName(int col)
{
if(columnInfo == null)
@@ -1242,13 +1242,13 @@ namespace IBM.Data.DB2 GetColumnInfo();
}
return columnInfo[col].Colname;
- } - #endregion - - #region GetOrdinal - /// - /// GetOrdinal, return the index of the named column - /// + }
+ #endregion
+
+ #region GetOrdinal
+ ///
+ /// GetOrdinal, return the index of the named column
+ ///
public int GetOrdinal(string name)
{
if(columnInfo == null)
@@ -1261,13 +1261,13 @@ namespace IBM.Data.DB2 throw new IndexOutOfRangeException("name");
}
return (int)ordinal;
- } - #endregion - - #region GetString - /// - /// GetString returns a string - /// + }
+ #endregion
+
+ #region GetString
+ ///
+ /// GetString returns a string
+ ///
public string GetString(int col)
{
return (string)GetStringInternal(col);
@@ -1304,23 +1304,23 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - #endregion - - #region GetValue - /// - /// GetVCalue, returns an object - /// - public object GetValue(int col) - { - return this[col]; - } - #endregion - - #region GetValues - /// - /// GetValues returns all columns in the row through the argument, and the number of columns in the return value - /// + }
+ #endregion
+
+ #region GetValue
+ ///
+ /// GetVCalue, returns an object
+ ///
+ public object GetValue(int col)
+ {
+ return this[col];
+ }
+ #endregion
+
+ #region GetValues
+ ///
+ /// GetValues returns all columns in the row through the argument, and the number of columns in the return value
+ ///
public int GetValues(object[] values)
{
int count = Math.Min(fieldCount, values.Length);
@@ -1332,24 +1332,24 @@ namespace IBM.Data.DB2 }
return count;
- } - #endregion - - #region IsDBNull - /// - /// IsDBNull Is the column null - /// + }
+ #endregion
+
+ #region IsDBNull
+ ///
+ /// IsDBNull Is the column null
+ ///
public bool IsDBNull(int col)
{
//Proper implementation once I get the SQLDescribe/SQLBind/SQLFetch stuff in place
return Convert.IsDBNull(this[col]);
- } - #endregion - - #endregion ///For IDataRecord - - #region private methods - + }
+ #endregion
+
+ #endregion ///For IDataRecord
+
+ #region private methods
+
private DataTable BuildNewSchemaTable()
{
DataTable schemaTable = new DataTable("SchemaTable");
@@ -1375,19 +1375,19 @@ namespace IBM.Data.DB2 schemaTable.Columns.Add(new DataColumn("BaseColumnName", typeof(string)));
return schemaTable;
- } - #endregion - - private void InitMem(int memSize, ref IntPtr ptr){ - if (ptr.ToInt32() == 0){ - unsafe{ - fixed(byte* arr = new byte[memSize]){ - ptr = new IntPtr(arr); - } - } - } - } - + }
+ #endregion
+
+ private void InitMem(int memSize, ref IntPtr ptr){
+ if (ptr.ToInt32() == 0){
+ unsafe{
+ fixed(byte* arr = new byte[memSize]){
+ ptr = new IntPtr(arr);
+ }
+ }
+ }
+ }
+
private Type GetManagedType(int sql_type)
{
switch(sql_type)
@@ -1419,8 +1419,8 @@ namespace IBM.Data.DB2 return typeof(byte[]);
}
throw new NotImplementedException("Unknown SQL type " + sql_type);
- } - + }
+
private bool IsLong(short sql_type)
{
switch(sql_type)
@@ -1430,7 +1430,7 @@ namespace IBM.Data.DB2 return true;
}
return false;
- } + }
private object GetBlobDataInternal(int col)
{
if((col < 0) || (col >= fieldCount))
@@ -1461,8 +1461,8 @@ namespace IBM.Data.DB2 }
}
return _resultSet[col];
- } - } - -} -#endregion + }
+ }
+
+}
+#endregion
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ErrorCollection.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ErrorCollection.cs index b37501c7fcc..0f59e3ee354 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ErrorCollection.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ErrorCollection.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Collections;
using System.Text;
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2OpenConnection.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2OpenConnection.cs index 59a7f7aab4e..825d36a26d7 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2OpenConnection.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2OpenConnection.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Collections;
using System.Runtime.InteropServices;
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Parameter.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Parameter.cs index 42bd73cb226..49d8d595769 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Parameter.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Parameter.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Data;
using System.Runtime.InteropServices;
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ParameterCollection.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ParameterCollection.cs index bb1f09d4832..76aad656e38 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ParameterCollection.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2ParameterCollection.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Data;
using System.Collections;
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Transaction.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Transaction.cs index 3c2b20ae9ed..333fdd010dc 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Transaction.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Transaction.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Data;
using System.Runtime.InteropServices;
diff --git a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Type.cs b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Type.cs index 47643778cbb..e8f29e14d8f 100644 --- a/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Type.cs +++ b/mcs/class/IBM.Data.DB2/IBM.Data.DB2/DB2Type.cs @@ -1,24 +1,24 @@ - -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// +
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
namespace IBM.Data.DB2
|