Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 129110 | Differences between
and this patch

Collapse All | Expand All

(-)mcs_orig/class/System.Data.OracleClient/System.Data.OracleClient/OracleCommand.cs (-6 / +2 lines)
Lines 91-99 Link Here
91
		[DefaultValue (CommandType.Text)]
91
		[DefaultValue (CommandType.Text)]
92
		public CommandType CommandType {
92
		public CommandType CommandType {
93
			get { return commandType; }
93
			get { return commandType; }
94
			set { 
94
			set {
95
				if (value == CommandType.TableDirect)
96
					throw new ArgumentException ("OracleClient provider does not support TableDirect CommandType.");
97
				commandType = value; 
95
				commandType = value; 
98
			}
96
			}
99
		}
97
		}
Lines 130-138 Link Here
130
		[DefaultValue (null)]
128
		[DefaultValue (null)]
131
		IDbConnection IDbCommand.Connection {
129
		IDbConnection IDbCommand.Connection {
132
			get { return Connection; }
130
			get { return Connection; }
133
			set { 
131
			set {
134
				if (!(value is OracleConnection))
135
					throw new InvalidCastException ("The value was not a valid OracleConnection.");
136
				Connection = (OracleConnection) value;
132
				Connection = (OracleConnection) value;
137
			}
133
			}
138
		}
134
		}

Return to bug 129110