mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#19435955: 수정 완료(질의문 오류 수정, debugPrint 코드 제거, 오류 수정)
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8021 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
247f88eeb8
commit
ab18a83330
3 changed files with 8 additions and 22 deletions
|
|
@ -27,15 +27,12 @@
|
|||
CUBRID를 사용하지 않는 경우에만 보편적인 기존 질의문을 사용합니다. */
|
||||
$db_info = Context::getDBInfo ();
|
||||
if ($db_info->db_type != "cubrid") {
|
||||
debugPrint ("importer: DEBUG - Non CUBRID DBMS detected.");
|
||||
$output = executeQuery('importer.updateDocumentSync');
|
||||
$output = executeQuery('importer.updateCommentSync');
|
||||
}
|
||||
else {
|
||||
debugPrint ("importer: DEBUG - CUBRID DBMS detected.");
|
||||
$output = executeQueryArray ('importer.getDocumentMemberSrlWithUserID');
|
||||
$output = executeQueryArray ('importer.getDocumentMemberSrlWithUserID')->data;
|
||||
if (is_array ($output) && count ($output)) {
|
||||
debugPrint ("importer: DEBUG - collect userid-membersrl pair for documents success.");
|
||||
$success_count = 0;
|
||||
$error_count = 0;
|
||||
$total_count = 0;
|
||||
|
|
@ -51,16 +48,10 @@
|
|||
}
|
||||
$total_count++;
|
||||
}
|
||||
debugPrint ("importer: Statistics of change owner for documents.\n".
|
||||
sprintf ("Total: %d, Success: %d, Error: %d.",
|
||||
$total_count, $success_count, $error_count
|
||||
)
|
||||
);
|
||||
} // documents section
|
||||
|
||||
$output = executeQueryArray ('importer.getCommentMemberSrlWithUserID');
|
||||
$output = executeQueryArray ('importer.getCommentMemberSrlWithUserID')->data;
|
||||
if (is_array ($output) && count ($output)) {
|
||||
debugPrint ("importer: DEBUG - collect userid-membersrl pair for comments success.");
|
||||
$success_count = 0;
|
||||
$error_count = 0;
|
||||
$total_count = 0;
|
||||
|
|
@ -76,11 +67,6 @@
|
|||
}
|
||||
$total_count++;
|
||||
}
|
||||
debugPrint ("importer: Statistics of change owner for documents.\n".
|
||||
sprintf ("Total: %d, Success: %d, Error: %d.",
|
||||
$total_count, $success_count, $error_count
|
||||
)
|
||||
);
|
||||
} // comments section
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<query id="updateCommentSyncForCUBRID" action="update">
|
||||
<tables>
|
||||
<table name="comments" alias="comments" />
|
||||
<table name="comments" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="comments.member_srl" var="member_srl" filter="number" />
|
||||
<column name="member_srl" var="member_srl" filter="number" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="comments.user_id" var="user_id" />
|
||||
<condition operation="equal" column="user_id" var="user_id" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
<query id="updateDocumentSyncForCUBRID" action="update">
|
||||
<tables>
|
||||
<table name="documents" alias="documents" />
|
||||
<table name="documents" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="documents.member_srl" var="member_srl" filter="number" />
|
||||
<column name="member_srl" var="member_srl" filter="number" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="documents.user_id" var="user_id" />
|
||||
<condition operation="equal" column="user_id" var="user_id" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue