| 2 |
* |
* |
| 3 |
* $Revision$ |
* $Revision$ |
| 4 |
* $Log$ |
* $Log$ |
| 5 |
|
* Revision 1.42 2005/01/19 00:51:29 aga |
| 6 |
|
* ・insertIndexでx_xnpaccount_index.index_idがおかしいのを修正. |
| 7 |
|
* |
| 8 |
* Revision 1.41 2005/01/19 00:06:51 aga |
* Revision 1.41 2005/01/19 00:06:51 aga |
| 9 |
* ・updateIndexで、同じ名前の兄弟があるか名前が空であるならエラーにした. |
* ・updateIndexで、同じ名前の兄弟があるか名前が空であるならエラーにした. |
| 10 |
* ・createSessionで、uidがPlatformユーザでないかactivateされていないならエラーにした. |
* ・createSessionで、uidがPlatformユーザでないかactivateされていないならエラーにした. |
| 3559 |
} |
} |
| 3560 |
|
|
| 3561 |
|
|
| 3562 |
|
/* |
| 3563 |
// todo |
// todo |
| 3564 |
// basic informationに書き込み |
// basic informationに書き込み |
| 3565 |
result_t insertItemInternal( sessionid_t sid, item_t *item, itemid_t *iid ){ |
result_t insertItemInternal( sessionid_t sid, item_t *item, itemid_t *iid ){ |
| 3575 |
} |
} |
| 3576 |
return result; |
return result; |
| 3577 |
} |
} |
| 3578 |
|
*/ |
| 3579 |
|
|
| 3580 |
/** |
/** |
| 3581 |
* |
* |
| 3980 |
static result_t insertIndexInternal( sessionid_t sid, index_t *index, indexid_t *xid ){ |
static result_t insertIndexInternal( sessionid_t sid, index_t *index, indexid_t *xid ){ |
| 3981 |
itemid_t iid; |
itemid_t iid; |
| 3982 |
|
|
| 3983 |
result_t result = insertItemInternal( sid, index, &iid ); |
result_t result = insertItem( sid, index, &iid ); |
| 3984 |
if ( result == RES_OK ){ |
if ( result == RES_OK ){ |
| 3985 |
string sql = "INSERT INTO " + dbprefix + "_xnpaccount_index ( parent_index_id, uid, gid, open_level, sort_number ) values ( " |
string sql = "INSERT INTO " + dbprefix + "_xnpaccount_index ( index_id, parent_index_id, uid, gid, open_level, sort_number ) values ( " |
| 3986 |
|
+ unsignedIntToString(iid) + "," |
| 3987 |
+ unsignedIntToString(index->getParentIndexID()) + "," + unsignedIntToString(index->getOwnerUID()) + "," |
+ unsignedIntToString(index->getParentIndexID()) + "," + unsignedIntToString(index->getOwnerUID()) + "," |
| 3988 |
+ unsignedIntToString(index->getOwnerGID()) + "," + unsignedIntToString(index->getOpenLevel()) + "," |
+ unsignedIntToString(index->getOwnerGID()) + "," + unsignedIntToString(index->getOpenLevel()) + "," |
| 3989 |
+ unsignedIntToString(index->getSortNumber()) + ") "; |
+ unsignedIntToString(index->getSortNumber()) + ") "; |