Develop and Download Open Source Software

Browse CVS Repository

Diff of /xoonips/AL/commonal.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.51 by youi, Mon Jan 24 10:50:29 2005 UTC revision 1.52 by aga, Tue Jan 25 06:46:50 2005 UTC
# Line 2  Line 2 
2   *   *
3   * $Revision$   * $Revision$
4   * $Log$   * $Log$
5     * Revision 1.52  2005/01/25 06:46:50  aga
6     * ・Bindersを含むindexはdeleteIndex不可.
7     * ・getItemsがエラーを出すことがあるのを修正.
8     *
9   * Revision 1.51  2005/01/24 10:50:29  youi   * Revision 1.51  2005/01/24 10:50:29  youi
10   * freeItemType,getItemTypes関数を追加した.   * freeItemType,getItemTypes関数を追加した.
11   *   *
# Line 3271  result_t getItems( sessionid_t sid, cons Line 3275  result_t getItems( sessionid_t sid, cons
3275      if( iidsLen > 0 ){      if( iidsLen > 0 ){
3276          int i;          int i;
3277          for( i = 0; i < iidsLen; i++ ){          for( i = 0; i < iidsLen; i++ ){
3278              if( getItemPermission( sid, iids[ i ], item::OP_READ ) )              if( getItemPermission( sid, iids[ i ], item::OP_READ ) ){
3279                  where = string( unsignedIntToString( iids[ i ] ) );                  where = string( unsignedIntToString( iids[ i ] ) );
3280              break;                  break;
3281                }
3282          }          }
3283          for( ; i < iidsLen; i++ ){          for( ; i < iidsLen; i++ ){
3284              if( getItemPermission( sid, iids[ i ], item::OP_READ ) )              if( getItemPermission( sid, iids[ i ], item::OP_READ ) )
# Line 5419  result_t deleteIndex( sessionid_t sid, Line 5424  result_t deleteIndex( sessionid_t sid,
5424                  return RES_ERROR;                  return RES_ERROR;
5425              }              }
5426                            
5427                // 削除対象の中にBindersが入っている場合は、削除できない。
5428                for ( int i = 0; i < descXIDLen; i++ ){
5429                    if ( descXID[i] == item::IID_BINDERS ){
5430                        setLastErrorString( "in deleteIndex: target index contains Binders." );
5431                        return RES_ERROR;
5432                    }
5433                }
5434                
5435              SQLRETURN sqlcode;              SQLRETURN sqlcode;
5436              SQLHANDLE hstmt = NULL;                  SQLHANDLE hstmt = NULL;    
5437              if( ( sqlcode = SQLAllocHandle( SQL_HANDLE_STMT, hdbc, &hstmt ) ) == SQL_SUCCESS ) {              if( ( sqlcode = SQLAllocHandle( SQL_HANDLE_STMT, hdbc, &hstmt ) ) == SQL_SUCCESS ) {

Legend:
Removed from v.1.51  
changed lines
  Added in v.1.52

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26