Jeremy D commited on 2011-11-06 17:57:29
Showing 1 changed files, with 4 additions and 2 deletions.
... | ... |
@@ -24,8 +24,10 @@ ini_set('display_errors', 1); |
24 | 24 |
* Add ajax support |
25 | 25 |
* Test |
26 | 26 |
* The version needs split into major, minor and revision.. Fun. |
27 |
+* Should move queries to be executed by a local method to handle errors. |
|
27 | 28 |
*/ |
28 | 29 |
|
30 |
+// This is my debugging for debugging queries. |
|
29 | 31 |
// exit(var_dump($this->tbg_db->errorInfo())); |
30 | 32 |
/* |
31 | 33 |
* @TODO Known Bugs |
... | ... |
@@ -847,8 +849,8 @@ class mbt_to_tbg extends tbg_converter |
847 | 849 |
foreach ($this->mantis_db->query($query) as $row) |
848 | 850 |
{ |
849 | 851 |
$this->tbg_db->query(' |
850 |
- REPLACE INTO ' . $this->tbg_db_prefix . 'issues (id, issue_no, project_id, title, assigned_to, duplicate_of, posted, last_updated, state, issuetype, category, resolution, priority, severity, reproducability) |
|
851 |
- VALUES (' . $row['id'] . ', ' . $row['issue_no'] . ', ' . $row['project_id'] . ', "' . $row['title'] . '", ' . $row['assigned_to'] . ', ' . $row['duplicate_of'] . ', ' . $row['posted'] . ', ' . $row['last_updated'] . ', ' . $row['state'] . ', ' . $row['issuetype'] . ', ' . $row['category'] . ', ' . $row['resolution'] . ', ' . $row['priority'] . ', ' . $row['severity'] . ', ' . $row['reproducability'] . ') |
|
852 |
+ REPLACE INTO ' . $this->tbg_db_prefix . 'issues (id, issue_no, project_id, title, assigned_to, duplicate_of, posted, last_updated, state, issuetype, category, resolution, priority, severity, reproducability, scope) |
|
853 |
+ VALUES (' . $row['id'] . ', ' . $row['issue_no'] . ', ' . $row['project_id'] . ', "' . $row['title'] . '", ' . $row['assigned_to'] . ', ' . $row['duplicate_of'] . ', ' . $row['posted'] . ', ' . $row['last_updated'] . ', ' . $row['state'] . ', ' . $row['issuetype'] . ', ' . $row['category'] . ', ' . $row['resolution'] . ', ' . $row['priority'] . ', ' . $row['severity'] . ', ' . $row['reproducability'] . ', 1) |
|
852 | 854 |
'); |
853 | 855 |
|
854 | 856 |
// This attempts to find any versions that got missed, but isn't accurate. |
855 | 857 |