Commit b659609def6729b2eb75dea2784f578161eb42d6
1 parent
3993303f
removed debug logging
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2441 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
1 additions
and
6 deletions
presentation/lookAndFeel/knowledgeTree/store.inc
| @@ -36,7 +36,6 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | @@ -36,7 +36,6 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | ||
| 36 | 36 | ||
| 37 | $iPrimaryKey = $_POST[$aKeys[++$i]]; | 37 | $iPrimaryKey = $_POST[$aKeys[++$i]]; |
| 38 | $sTableName = $_POST[$aKeys[++$i]]; | 38 | $sTableName = $_POST[$aKeys[++$i]]; |
| 39 | - $default->log->info("primaryKey=$iPrimaryKey; tableName=$sTableName"); | ||
| 40 | 39 | ||
| 41 | $i++; | 40 | $i++; |
| 42 | $iColumnCount = 0; | 41 | $iColumnCount = 0; |
| @@ -75,11 +74,10 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | @@ -75,11 +74,10 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | ||
| 75 | break; | 74 | break; |
| 76 | } | 75 | } |
| 77 | 76 | ||
| 78 | - //$aValues[$iColumnCount] = $_POST[$aKeys[$i]]; | ||
| 79 | $sRowStart = $aKeys[++$i]; | 77 | $sRowStart = $aKeys[++$i]; |
| 80 | $iColumnCount++; | 78 | $iColumnCount++; |
| 81 | } | 79 | } |
| 82 | - $default->log->info("columns: " . arrayToString($aColumns)); | 80 | + |
| 83 | if ($iPrimaryKey < 0) { | 81 | if ($iPrimaryKey < 0) { |
| 84 | //perform an insert | 82 | //perform an insert |
| 85 | $sQuery = "INSERT INTO $sTableName ("; | 83 | $sQuery = "INSERT INTO $sTableName ("; |
| @@ -107,7 +105,6 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | @@ -107,7 +105,6 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | ||
| 107 | break; | 105 | break; |
| 108 | case 4: | 106 | case 4: |
| 109 | // user supplied values | 107 | // user supplied values |
| 110 | - $default->log->info("supplied values: aColumns[j]=" . $aColumns[$j] . "suppliedValues=" . $aSuppliedValues[$aColumns[$j]]); | ||
| 111 | $sQuery .= $aSuppliedValues[$aColumns[$j]] . ", "; | 108 | $sQuery .= $aSuppliedValues[$aColumns[$j]] . ", "; |
| 112 | break; | 109 | break; |
| 113 | default: | 110 | default: |
| @@ -133,7 +130,6 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | @@ -133,7 +130,6 @@ function constructQuery($aKeys, $aSuppliedValues = null) { | ||
| 133 | break; | 130 | break; |
| 134 | case 4: | 131 | case 4: |
| 135 | // user supplied values | 132 | // user supplied values |
| 136 | - $default->log->info("supplied values: suppliedValues=" . $aSuppliedValues[$aColumns[count($aColumns) - 1]]); | ||
| 137 | $sQuery .= $aSuppliedValues[$aColumns[count($aColumns) - 1]] . ", "; | 133 | $sQuery .= $aSuppliedValues[$aColumns[count($aColumns) - 1]] . ", "; |
| 138 | break; | 134 | break; |
| 139 | default: | 135 | default: |
presentation/lookAndFeel/knowledgeTree/store.php
| @@ -26,7 +26,6 @@ if (count($_POST) > 0) { | @@ -26,7 +26,6 @@ if (count($_POST) > 0) { | ||
| 26 | 26 | ||
| 27 | //execute the queries | 27 | //execute the queries |
| 28 | for ($i=0; $i<count($aQueries); $i++) { | 28 | for ($i=0; $i<count($aQueries); $i++) { |
| 29 | - $default->log->info("query=" . $aQueries[$i]); | ||
| 30 | $sql = $default->db; | 29 | $sql = $default->db; |
| 31 | $sql->query($aQueries[$i]); | 30 | $sql->query($aQueries[$i]); |
| 32 | } | 31 | } |