diff options
author | Bruce Momjian <bruce@momjian.us> | 2000-05-16 20:48:52 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2000-05-16 20:48:52 +0000 |
commit | a47e20b049a293d47a0f22e96447a38b717327a5 (patch) | |
tree | de389d919b4dcabb455d8c8bd6fa1c49be39ba0b /src/interfaces/odbc/options.c | |
parent | 5128d145a8f04bdee6ebf73314437b36871a847b (diff) |
Several compilation and run-time problems occur when building on SGI
IRIX systems using the native compilers. A summary is:
- Various files use "//" as a comment delimiter in c files.
- Problems caused by assuming "char" is signed.
cash.in: building -signed the rules regression test fails as described
in FAQ_QNX4. If CHAR_MAX is "255U" then ((signed char)CHAR_MAX) is -1.
postmaster.c: random number regression test failed without this change.
- Some generic build issues and warning message cleanup.
David Kaelbling
Diffstat (limited to 'src/interfaces/odbc/options.c')
-rw-r--r-- | src/interfaces/odbc/options.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/interfaces/odbc/options.c b/src/interfaces/odbc/options.c index 589a9de5702..eb67dd590fa 100644 --- a/src/interfaces/odbc/options.c +++ b/src/interfaces/odbc/options.c @@ -110,8 +110,8 @@ char changed = FALSE; else { if (vParam == SQL_CURSOR_FORWARD_ONLY || vParam == SQL_CURSOR_STATIC) { - if (conn) conn->stmtOptions.cursor_type = vParam; // valid type - if (stmt) stmt->options.cursor_type = vParam; // valid type + if (conn) conn->stmtOptions.cursor_type = vParam; /* valid type */ + if (stmt) stmt->options.cursor_type = vParam; /* valid type */ } else { @@ -161,7 +161,7 @@ char changed = FALSE; case SQL_QUERY_TIMEOUT: /* ignored */ mylog("SetStmtOption: SQL_QUERY_TIMEOUT, vParam = %d\n", vParam); - // "0" returned in SQLGetStmtOption + /* "0" returned in SQLGetStmtOption */ break; case SQL_RETRIEVE_DATA: /* ignored, but saved */ @@ -390,7 +390,7 @@ int i; return SQL_SUCCESS; } -// - - - - - - - - - +/* - - - - - - - - - */ /* This function just can tell you whether you are in Autcommit mode or not */ RETCODE SQL_API SQLGetConnectOption( @@ -465,7 +465,7 @@ ConnectionClass *conn = (ConnectionClass *) hdbc; return SQL_SUCCESS; } -// - - - - - - - - - +/* - - - - - - - - - */ RETCODE SQL_API SQLSetStmtOption( HSTMT hstmt, @@ -477,9 +477,9 @@ StatementClass *stmt = (StatementClass *) hstmt; mylog("%s: entering...\n", func); - // thought we could fake Access out by just returning SQL_SUCCESS - // all the time, but it tries to set a huge value for SQL_MAX_LENGTH - // and expects the driver to reduce it to the real value + /* thought we could fake Access out by just returning SQL_SUCCESS */ + /* all the time, but it tries to set a huge value for SQL_MAX_LENGTH */ + /* and expects the driver to reduce it to the real value */ if( ! stmt) { SC_log_error(func, "", NULL); @@ -490,7 +490,7 @@ StatementClass *stmt = (StatementClass *) hstmt; } -// - - - - - - - - - +/* - - - - - - - - - */ RETCODE SQL_API SQLGetStmtOption( HSTMT hstmt, @@ -503,9 +503,9 @@ QResultClass *res; mylog("%s: entering...\n", func); - // thought we could fake Access out by just returning SQL_SUCCESS - // all the time, but it tries to set a huge value for SQL_MAX_LENGTH - // and expects the driver to reduce it to the real value + /* thought we could fake Access out by just returning SQL_SUCCESS */ + /* all the time, but it tries to set a huge value for SQL_MAX_LENGTH */ + /* and expects the driver to reduce it to the real value */ if( ! stmt) { SC_log_error(func, "", NULL); @@ -519,7 +519,7 @@ QResultClass *res; res = stmt->result; if ( stmt->manual_result || ! globals.use_declarefetch) { - // make sure we're positioned on a valid row + /* make sure we're positioned on a valid row */ if((stmt->currTuple < 0) || (stmt->currTuple >= QR_get_num_tuples(res))) { stmt->errormsg = "Not positioned on a valid row."; @@ -618,4 +618,4 @@ QResultClass *res; return SQL_SUCCESS; } -// - - - - - - - - - +/* - - - - - - - - - */ |