297 references to RetCode
System.Data (297)
fx\src\data\System\Data\Common\System.Data_BID.cs (4)
301
[BidArgumentType(typeof(System.Int32))] System.Data.Odbc.ODBC32.
RetCode
a1) {
302
if (((System.Data.Odbc.ODBC32.
RetCode
.SUCCESS != a1) || (modFlags & ApiGroup.StatusOk) != 0) && (modFlags & ApiGroup.Trace) != 0 && modID != NoData)
309
[BidArgumentType(typeof(System.Int32))] System.Data.Odbc.ODBC32.
RetCode
a1,
311
if (((System.Data.Odbc.ODBC32.
RetCode
.SUCCESS != a1) || (modFlags & ApiGroup.StatusOk) != 0) && (modFlags & ApiGroup.Trace) != 0 && modID != NoData)
fx\src\data\System\Data\Common\UnsafeNativeMethods.cs (45)
31
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLAllocHandle(
39
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLAllocHandle(
47
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLBindCol(
57
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLBindCol(
67
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLBindParameter(
81
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLCancel(
86
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLCloseCursor(
91
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLColAttributeW (
118
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLColumnsW (
136
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLDisconnect(
142
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLDriverConnectW(
156
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLEndTran(
163
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLExecDirectW(
171
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLExecute(
176
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLFetch(
182
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLFreeHandle(
188
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLFreeStmt(
194
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetConnectAttrW(
203
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetData(
213
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetDescFieldW (
223
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetDiagRecW(
235
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetDiagFieldW(
247
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetFunctions(
254
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetInfoW(
263
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetInfoW(
272
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetStmtAttrW(
281
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLGetTypeInfo(
287
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLMoreResults(
292
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLNumResultCols(
298
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLPrepareW(
306
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLPrimaryKeysW (
320
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLProcedureColumnsW (
333
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLProceduresW (
344
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLRowCount(
350
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetConnectAttrW(
358
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetConnectAttrW(
366
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetConnectAttrW(
375
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetConnectAttrW( // used only for AutoCommitOn
383
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetDescFieldW (
392
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetDescFieldW (
402
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetEnvAttr(
410
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSetStmtAttrW(
418
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLSpecialColumnsW (
435
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLStatisticsW (
451
static internal extern /*SQLRETURN*/ODBC32.
RetCode
SQLTablesW (
fx\src\data\System\Data\Odbc\Odbc32.cs (18)
90
static internal Exception CantEnableConnectionpooling(ODBC32.
RetCode
retcode) {
93
static internal Exception CantAllocateEnvironmentHandle(ODBC32.
RetCode
retcode) {
96
static internal Exception FailedToGetDescriptorHandle(ODBC32.
RetCode
retcode) {
107
static internal void TraceODBC(int level, string method, ODBC32.
RetCode
retcode) {
146
internal static string RetcodeToString(
RetCode
retcode) {
148
case
RetCode
.SUCCESS: return "SUCCESS";
149
case
RetCode
.SUCCESS_WITH_INFO: return "SUCCESS_WITH_INFO";
150
case
RetCode
.ERROR: return "ERROR";
151
case
RetCode
.INVALID_HANDLE: return "INVALID_HANDLE";
152
case
RetCode
.NO_DATA: return "NO_DATA";
155
goto case
RetCode
.ERROR;
729
static internal OdbcErrorCollection GetDiagErrors(string source, OdbcHandle hrHandle,
RetCode
retcode) {
735
static internal void GetDiagErrors(OdbcErrorCollection errors, string source, OdbcHandle hrHandle,
RetCode
retcode) {
736
Debug.Assert(retcode!=ODBC32.
RetCode
.INVALID_HANDLE, "retcode must never be ODBC32.RetCode.INVALID_HANDLE");
737
if (
RetCode
.SUCCESS != retcode) {
750
if ((
RetCode
.SUCCESS_WITH_INFO == retcode) && (message.Capacity-1 < cchActual)) {
757
moreerrors = (retcode ==
RetCode
.SUCCESS || retcode ==
RetCode
.SUCCESS_WITH_INFO);
fx\src\data\System\Data\Odbc\OdbcCommand.cs (18)
416
ODBC32.
RetCode
retcode = stmt.Cancel();
420
case ODBC32.
RetCode
.SUCCESS:
421
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
550
ODBC32.
RetCode
retcode;
610
if(ODBC32.
RetCode
.SUCCESS != retcode) {
651
if(retcode == ODBC32.
RetCode
.SUCCESS || retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO) {
656
else if(retcode == ODBC32.
RetCode
.NO_DATA) {
730
if((ODBC32.
RetCode
.SUCCESS != retcode) && (ODBC32.
RetCode
.NO_DATA != retcode)) {
801
ODBC32.
RetCode
retcode;
821
if (ODBC32.
RetCode
.SUCCESS != retcode) {
831
ODBC32.
RetCode
retcode = stmt.SetStatementAttribute(
836
if (retcode == ODBC32.
RetCode
.ERROR) {
989
ODBC32.
RetCode
retcode;
1039
internal void StatementErrorHandler(ODBC32.
RetCode
retcode) {
1041
case ODBC32.
RetCode
.SUCCESS:
1042
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
fx\src\data\System\Data\Odbc\OdbcCommandBuilder.cs (2)
178
ODBC32.
RetCode
retcode = hstmt.ProcedureColumns(parts[1], parts[2], parts[3], null);
183
if (ODBC32.
RetCode
.SUCCESS != retcode) {
fx\src\data\System\Data\Odbc\OdbcConnection.cs (30)
355
ODBC32.
RetCode
retcode = connectionHandle.GetConnectionAttribute(attribute, buffer, out cbActual);
362
if ((ODBC32.
RetCode
.SUCCESS == retcode) || (ODBC32.
RetCode
.SUCCESS_WITH_INFO == retcode)) {
365
else if (retcode == ODBC32.
RetCode
.ERROR) {
382
ODBC32.
RetCode
retcode = connectionHandle.GetConnectionAttribute(attribute, buffer, out cbActual);
384
if ((ODBC32.
RetCode
.SUCCESS == retcode) || (ODBC32.
RetCode
.SUCCESS_WITH_INFO == retcode)) {
388
if (retcode == ODBC32.
RetCode
.ERROR) {
409
internal ODBC32.
RetCode
GetInfoInt16Unhandled(ODBC32.SQL_INFO info, out Int16 resultValue) {
411
ODBC32.
RetCode
retcode = ConnectionHandle.GetInfo1(info, buffer);
416
internal ODBC32.
RetCode
GetInfoInt32Unhandled(ODBC32.SQL_INFO info, out Int32 resultValue) {
418
ODBC32.
RetCode
retcode = ConnectionHandle.GetInfo1(info, buffer);
440
ODBC32.
RetCode
retcode = connectionHandle.GetInfo2(info, buffer, out cbActual);
447
if (retcode == ODBC32.
RetCode
.SUCCESS || retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO) {
461
internal Exception HandleErrorNoThrow(OdbcHandle hrHandle, ODBC32.
RetCode
retcode) {
463
Debug.Assert(retcode!=ODBC32.
RetCode
.INVALID_HANDLE, "retcode must never be ODBC32.RetCode.INVALID_HANDLE");
466
case ODBC32.
RetCode
.SUCCESS:
468
case ODBC32.
RetCode
.SUCCESS_WITH_INFO: {
489
internal void HandleError(OdbcHandle hrHandle, ODBC32.
RetCode
retcode) {
492
case ODBC32.
RetCode
.SUCCESS:
493
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
676
ODBC32.
RetCode
retcode;
688
if(retcode != ODBC32.
RetCode
.SUCCESS)
817
ODBC32.
RetCode
retcode = connectionHandle.BeginTransaction(ref isolevel);
818
if (retcode == ODBC32.
RetCode
.ERROR) {
842
ODBC32.
RetCode
retcode = connectionHandle.SetConnectionAttribute3(ODBC32.SQL_ATTR.CURRENT_CATALOG, value, checked((Int32)value.Length*2));
844
if (retcode != ODBC32.
RetCode
.SUCCESS) {
859
ODBC32.
RetCode
retcode;
867
if (retcode != ODBC32.
RetCode
.SUCCESS) {
fx\src\data\System\Data\Odbc\OdbcConnectionHandle.cs (37)
44
ODBC32.
RetCode
retcode;
64
private ODBC32.
RetCode
AutoCommitOff() {
65
ODBC32.
RetCode
retcode;
75
case ODBC32.
RetCode
.SUCCESS:
76
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
85
internal ODBC32.
RetCode
BeginTransaction(ref IsolationLevel isolevel) {
86
ODBC32.
RetCode
retcode = ODBC32.
RetCode
.SUCCESS;
126
if(ODBC32.
RetCode
.SUCCESS_WITH_INFO == retcode) {
132
case ODBC32.
RetCode
.SUCCESS:
133
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
142
internal ODBC32.
RetCode
CompleteTransaction(short transactionOperation) {
147
ODBC32.
RetCode
retcode = CompleteTransaction(transactionOperation, base.handle);
158
private ODBC32.
RetCode
CompleteTransaction(short transactionOperation, IntPtr handle) {
161
ODBC32.
RetCode
retcode = ODBC32.
RetCode
.SUCCESS;
168
if((ODBC32.
RetCode
.SUCCESS == retcode) || (ODBC32.
RetCode
.SUCCESS_WITH_INFO == retcode)) {
185
private ODBC32.
RetCode
Connect(string connectionString) {
188
ODBC32.
RetCode
retcode;
197
case ODBC32.
RetCode
.SUCCESS:
198
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
209
ODBC32.
RetCode
retcode;
223
internal ODBC32.
RetCode
GetConnectionAttribute(ODBC32.SQL_ATTR attribute, byte[] buffer, out int cbActual) {
224
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetConnectAttrW(this, attribute, buffer, buffer.Length, out cbActual);
229
internal ODBC32.
RetCode
GetFunctions(ODBC32.SQL_API fFunction, out Int16 fExists) {
230
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetFunctions(this, fFunction, out fExists);
235
internal ODBC32.
RetCode
GetInfo2(ODBC32.SQL_INFO info, byte[] buffer, out short cbActual) {
236
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, checked((short)buffer.Length), out cbActual);
241
internal ODBC32.
RetCode
GetInfo1(ODBC32.SQL_INFO info, byte[] buffer) {
242
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetInfoW(this, info, buffer, checked((short)buffer.Length), ADP.PtrZero);
247
internal ODBC32.
RetCode
SetConnectionAttribute2(ODBC32.SQL_ATTR attribute, IntPtr value, Int32 length) {
248
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLSetConnectAttrW(this, attribute, value, length);
253
internal ODBC32.
RetCode
SetConnectionAttribute3(ODBC32.SQL_ATTR attribute, string buffer, Int32 length) {
254
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLSetConnectAttrW(this, attribute, buffer, length);
259
internal ODBC32.
RetCode
SetConnectionAttribute4(ODBC32.SQL_ATTR attribute, System.Transactions.IDtcTransaction transaction, Int32 length) {
260
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLSetConnectAttrW(this, attribute, transaction, length);
fx\src\data\System\Data\Odbc\OdbcDataReader.cs (47)
159
ODBC32.
RetCode
retcode = this.FieldCountNoThrow(out cColsAffected);
160
if(retcode != ODBC32.
RetCode
.SUCCESS) {
187
internal ODBC32.
RetCode
FieldCountNoThrow(out Int16 cColsAffected) {
190
return ODBC32.
RetCode
.ERROR;
193
ODBC32.
RetCode
retcode = StatementHandle.NumberOfResultColumns(out cColsAffected);
194
if (retcode == ODBC32.
RetCode
.SUCCESS) {
228
ODBC32.
RetCode
retcode = StatementHandle.RowCount(out cRowsAffected);
229
if (ODBC32.
RetCode
.SUCCESS == retcode || ODBC32.
RetCode
.SUCCESS_WITH_INFO == retcode) {
1346
ODBC32.
RetCode
retcode;
1364
if (retcode != ODBC32.
RetCode
.SUCCESS)
1366
if (retcode == ODBC32.
RetCode
.ERROR) {
1389
ODBC32.
RetCode
retcode;
1411
if((retcode != ODBC32.
RetCode
.SUCCESS) || (cchNameLength == 0))
1413
if (retcode == ODBC32.
RetCode
.ERROR) {
1444
ODBC32.
RetCode
retcode;
1455
if((retcode != ODBC32.
RetCode
.SUCCESS) || (numericAttribute == 0))
1457
if (retcode == ODBC32.
RetCode
.ERROR) {
1524
ODBC32.
RetCode
retcode = StatementHandle.GetData(
1532
case ODBC32.
RetCode
.SUCCESS:
1534
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
1541
case ODBC32.
RetCode
.NO_DATA:
1608
ODBC32.
RetCode
retcode;
1618
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
1623
case ODBC32.
RetCode
.SUCCESS:
1627
case ODBC32.
RetCode
.NO_DATA:
1661
ODBC32.
RetCode
retcode = FieldCountNoThrow(out cCols);
1662
if ((retcode == ODBC32.
RetCode
.SUCCESS) && (cCols == 0)) {
1683
ODBC32.
RetCode
retcode, firstRetCode = ODBC32.
RetCode
.SUCCESS;
1710
hasMoreResults = ((retcode == ODBC32.
RetCode
.SUCCESS)
1711
||(retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO));
1713
if (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO) {
1716
else if (!disposing && (retcode != ODBC32.
RetCode
.NO_DATA) && (ODBC32.
RetCode
.SUCCESS != retcode)) {
1738
|| ((ODBC32.
RetCode
.NO_DATA != retcode) && allresults && (loop < MaxConsecutiveFailure)) // or process all results until done
1744
if(retcode == ODBC32.
RetCode
.NO_DATA) {
2035
ODBC32.
RetCode
retcode;
2062
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)) {
2073
while (ODBC32.
RetCode
.SUCCESS == (retcode = KeyInfoStatementHandle.Fetch())) {
2132
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)) {
2143
while (ODBC32.
RetCode
.SUCCESS == (retcode = KeyInfoStatementHandle.Fetch())) {
2182
ODBC32.
RetCode
retcode;
2207
if (retcode != ODBC32.
RetCode
.SUCCESS) {
2257
while (ODBC32.
RetCode
.SUCCESS == (retcode = KeyInfoStatementHandle.Fetch())) {
fx\src\data\System\Data\Odbc\OdbcEnvironmentHandle.cs (3)
31
ODBC32.
RetCode
retcode;
54
case ODBC32.
RetCode
.SUCCESS:
55
case ODBC32.
RetCode
.SUCCESS_WITH_INFO:
fx\src\data\System\Data\Odbc\OdbcException.cs (1)
27
static internal OdbcException CreateException(OdbcErrorCollection errors, ODBC32.
RetCode
retcode) {
fx\src\data\System\Data\Odbc\OdbcHandle.cs (19)
36
ODBC32.
RetCode
retcode = ODBC32.
RetCode
.SUCCESS;
81
if((ADP.PtrZero == base.handle) || (ODBC32.
RetCode
.SUCCESS != retcode)) {
92
ODBC32.
RetCode
retcode;
146
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLFreeHandle(handleType, handle);
172
internal ODBC32.
RetCode
GetDiagnosticField (out string sqlState) {
176
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetDiagFieldW(
185
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)) {
194
internal ODBC32.
RetCode
GetDiagnosticRecord(short record, out string sqlState, StringBuilder message, out int nativeError, out short cchActual) {
197
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetDiagRecW(HandleType, this, record, sb, out nativeError, message, checked((short)message.Capacity), out cchActual);
200
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)) {
215
internal ODBC32.
RetCode
GetDescriptionField(int i, ODBC32.SQL_DESC attribute, CNativeBuffer buffer, out int numericAttribute) {
216
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetDescFieldW(this, checked((short)i), attribute, buffer, buffer.ShortLength, out numericAttribute);
221
internal ODBC32.
RetCode
SetDescriptionField1(short ordinal, ODBC32.SQL_DESC type, IntPtr value) {
222
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLSetDescFieldW(this, ordinal, type, value, 0);
227
internal ODBC32.
RetCode
SetDescriptionField2(short ordinal, ODBC32.SQL_DESC type, HandleRef value) {
228
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLSetDescFieldW(this, ordinal, type, value, 0);
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (9)
560
ODBC32.
RetCode
retcode;
598
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)){
621
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)){
654
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)){
718
if ((retcode == ODBC32.
RetCode
.SUCCESS) || (retcode == ODBC32.
RetCode
.SUCCESS_WITH_INFO)){
fx\src\data\System\Data\Odbc\OdbcParameter.cs (6)
691
ODBC32.
RetCode
retcode;
764
if (ODBC32.
RetCode
.SUCCESS != retcode) {
792
if (ODBC32.
RetCode
.SUCCESS != retcode) {
803
if (ODBC32.
RetCode
.SUCCESS != retcode) {
814
if (ODBC32.
RetCode
.SUCCESS != retcode) {
823
if (ODBC32.
RetCode
.SUCCESS != retcode) {
fx\src\data\System\Data\Odbc\OdbcStatementHandle.cs (52)
74
internal ODBC32.
RetCode
BindColumn2(int columnNumber, ODBC32.SQL_C targetType, HandleRef buffer, IntPtr length, IntPtr srLen_or_Ind) {
75
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLBindCol(this, checked((ushort)columnNumber), targetType, buffer, length, srLen_or_Ind);
80
internal ODBC32.
RetCode
BindColumn3(int columnNumber, ODBC32.SQL_C targetType, IntPtr srLen_or_Ind) {
81
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLBindCol(this, checked((ushort)columnNumber), targetType, ADP.PtrZero, ADP.PtrZero, srLen_or_Ind);
86
internal ODBC32.
RetCode
BindParameter(short ordinal, short parameterDirection, ODBC32.SQL_C sqlctype, ODBC32.SQL_TYPE sqltype, IntPtr cchSize, IntPtr scale, HandleRef buffer, IntPtr bufferLength, HandleRef intbuffer) {
87
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLBindParameter(this,
101
internal ODBC32.
RetCode
Cancel() {
104
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLCancel(this);
109
internal ODBC32.
RetCode
CloseCursor() {
110
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLCloseCursor(this);
115
internal ODBC32.
RetCode
ColumnAttribute(int columnNumber, short fieldIdentifier, CNativeBuffer characterAttribute, out short stringLength, out SQLLEN numericAttribute) {
117
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLColAttributeW(this, checked((short)columnNumber), fieldIdentifier, characterAttribute, characterAttribute.ShortLength, out stringLength, out result);
123
internal ODBC32.
RetCode
Columns(string tableCatalog,
127
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLColumnsW(this,
141
internal ODBC32.
RetCode
Execute() {
142
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLExecute(this);
147
internal ODBC32.
RetCode
ExecuteDirect(string commandText) {
148
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLExecDirectW(this, commandText, ODBC32.SQL_NTS);
153
internal ODBC32.
RetCode
Fetch() {
154
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLFetch(this);
159
internal ODBC32.
RetCode
FreeStatement(ODBC32.STMT stmt) {
160
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLFreeStmt(this, stmt);
165
internal ODBC32.
RetCode
GetData(int index, ODBC32.SQL_C sqlctype, CNativeBuffer buffer, int cb, out IntPtr cbActual) {
166
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetData(this,
176
internal ODBC32.
RetCode
GetStatementAttribute(ODBC32.SQL_ATTR attribute, out IntPtr value, out int stringLength) {
177
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetStmtAttrW(this, attribute, out value, ADP.PtrSize, out stringLength);
182
internal ODBC32.
RetCode
GetTypeInfo(Int16 fSqlType) {
183
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLGetTypeInfo(this, fSqlType);
188
internal ODBC32.
RetCode
MoreResults() {
189
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLMoreResults(this);
194
internal ODBC32.
RetCode
NumberOfResultColumns(out short columnsAffected) {
195
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLNumResultCols(this, out columnsAffected);
200
internal ODBC32.
RetCode
Prepare(string commandText) {
201
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLPrepareW(this, commandText, ODBC32.SQL_NTS);
206
internal ODBC32.
RetCode
PrimaryKeys(string catalogName, string schemaName, string tableName) {
207
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLPrimaryKeysW(this,
216
internal ODBC32.
RetCode
Procedures(string procedureCatalog,
219
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLProceduresW(this,
231
internal ODBC32.
RetCode
ProcedureColumns(string procedureCatalog,
235
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLProcedureColumnsW(this,
249
internal ODBC32.
RetCode
RowCount(out SQLLEN rowCount) {
251
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLRowCount(this, out result);
257
internal ODBC32.
RetCode
SetStatementAttribute(ODBC32.SQL_ATTR attribute, IntPtr value, ODBC32.SQL_IS stringLength) {
258
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLSetStmtAttrW(this, (int)attribute, value, (int)stringLength);
263
internal ODBC32.
RetCode
SpecialColumns(string quotedTable) {
264
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLSpecialColumnsW(this,
272
internal ODBC32.
RetCode
Statistics(string tableCatalog,
277
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLStatisticsW(this,
291
internal ODBC32.
RetCode
Statistics(string tableName) {
292
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLStatisticsW(this,
301
internal ODBC32.
RetCode
Tables(string tableCatalog,
305
ODBC32.
RetCode
retcode = UnsafeNativeMethods.SQLTablesW(this,
fx\src\data\System\Data\Odbc\OdbcTransaction.cs (6)
94
ODBC32.
RetCode
retcode = _handle.CompleteTransaction(ODBC32.SQL_COMMIT);
95
if (retcode == ODBC32.
RetCode
.ERROR) {
114
ODBC32.
RetCode
retcode = handle.CompleteTransaction(ODBC32.SQL_ROLLBACK);
115
if (retcode == ODBC32.
RetCode
.ERROR) {
154
ODBC32.
RetCode
retcode = _handle.CompleteTransaction(ODBC32.SQL_ROLLBACK);
155
if (retcode == ODBC32.
RetCode
.ERROR) {