| 22 |
* |
* |
| 23 |
* $Revision$ |
* $Revision$ |
| 24 |
* $Log$ |
* $Log$ |
| 25 |
|
* Revision 1.98 2005/07/12 06:40:44 aga4096 |
| 26 |
|
* ・setConfigValueに失敗するのを修正. |
| 27 |
|
* |
| 28 |
* Revision 1.97 2005/06/30 07:21:42 aga4096 |
* Revision 1.97 2005/06/30 07:21:42 aga4096 |
| 29 |
* ・get_all_index等で得られるindexが少ないことがあるのを修正. |
* ・get_all_index等で得られるindexが少ないことがあるのを修正. |
| 30 |
* |
* |
| 6350 |
if( sqlcode == SQL_SUCCESS || sqlcode == SQL_SUCCESS_WITH_INFO ){ |
if( sqlcode == SQL_SUCCESS || sqlcode == SQL_SUCCESS_WITH_INFO ){ |
| 6351 |
SQLBindParameter(hstmt2, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, XNP_CONFIG_NAME_LEN, 0, (SQLCHAR*)key , strlen(key) , &cbKey ); |
SQLBindParameter(hstmt2, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, XNP_CONFIG_NAME_LEN, 0, (SQLCHAR*)key , strlen(key) , &cbKey ); |
| 6352 |
SQLBindParameter(hstmt2, 2, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, SQL_DESC_LENGTH, 0, (SQLCHAR*)value, strlen(value), &cbValue ); |
SQLBindParameter(hstmt2, 2, SQL_PARAM_INPUT, SQL_C_CHAR, SQL_LONGVARCHAR, SQL_DESC_LENGTH, 0, (SQLCHAR*)value, strlen(value), &cbValue ); |
| 6353 |
sqlcode = SQLExecute( hstmt ); |
sqlcode = SQLExecute( hstmt2 ); |
| 6354 |
if( sqlcode == SQL_SUCCESS || sqlcode == SQL_SUCCESS_WITH_INFO ){ |
if( sqlcode == SQL_SUCCESS || sqlcode == SQL_SUCCESS_WITH_INFO ){ |
| 6355 |
if( ( sqlcode = SQLRowCount( hstmt2, &count ) ) == SQL_SUCCESS && count > 0 ){ |
if( ( sqlcode = SQLRowCount( hstmt2, &count ) ) == SQL_SUCCESS && count > 0 ){ |
| 6356 |
ret = RES_OK; |
ret = RES_OK; |
| 6357 |
|
}else{ |
| 6358 |
|
string s( "SQLRowCount in setConfigValue" ); |
| 6359 |
|
s += odbcDiagString( SQL_HANDLE_STMT, hstmt2, sqlcode ); |
| 6360 |
|
s += "sql="; |
| 6361 |
|
s += string( sql ); |
| 6362 |
|
setLastErrorString( s.c_str( ) ); |
| 6363 |
|
ret = RES_ERROR; |
| 6364 |
} |
} |
| 6365 |
}else{ |
}else{ |
| 6366 |
string s( "SQLExecDirect in setConfigValue" ); |
string s( "SQLExecDirect in setConfigValue" ); |