Update of /cvsroot/phpvortex/phpvortex
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16120
Modified Files:
DB_Base.class.php TB_Base.class.php
Log Message:
Fixed bug when the debug headers where not appended
Index: DB_Base.class.php
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/DB_Base.class.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** DB_Base.class.php 30 Sep 2004 19:29:57 -0000 1.7
--- DB_Base.class.php 5 Oct 2004 19:02:33 -0000 1.8
***************
*** 101,105 ****
}
$sql = "INSERT INTO $table ($fl) VALUES ($vl)";
! dv(3, 'INSERT SQL', $sql);
return $this->Query($sql);
}
--- 101,105 ----
}
$sql = "INSERT INTO $table ($fl) VALUES ($vl)";
! if (!empty($debug)) dv(3, 'INSERT SQL', $sql);
return $this->Query($sql);
}
***************
*** 120,124 ****
}
$sql = "UPDATE $table SET $sl WHERE $where";
! dv(3, 'UPDATE SQL', $sql);
return $this->Query($sql);
}
--- 120,124 ----
}
$sql = "UPDATE $table SET $sl WHERE $where";
! if (!empty($debug)) dv(3, 'UPDATE SQL', $sql);
return $this->Query($sql);
}
***************
*** 134,138 ****
{
$sql = "DELETE FROM $table WHERE $where";
! dv(3, 'DELETE SQL', $sql);
return $this->Query($sql);
}
--- 134,138 ----
{
$sql = "DELETE FROM $table WHERE $where";
! if (!empty($debug)) dv(3, 'DELETE SQL', $sql);
return $this->Query($sql);
}
Index: TB_Base.class.php
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/TB_Base.class.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** TB_Base.class.php 5 Oct 2004 15:09:29 -0000 1.9
--- TB_Base.class.php 5 Oct 2004 19:02:33 -0000 1.10
***************
*** 168,172 ****
}
$sql = "SELECT * FROM {$this->name_db} WHERE $where";
! dv(3, 'SEEK SELECT', $sql);
if (!($rs = $this->db->Query($sql))) {
$this->data = array();
--- 168,172 ----
}
$sql = "SELECT * FROM {$this->name_db} WHERE $where";
! if (!empty($debug)) dv(3, 'SEEK SELECT', $sql);
if (!($rs = $this->db->Query($sql))) {
$this->data = array();
***************
*** 300,304 ****
if (!empty($this->list_order)) $sql .= " ORDER BY {$this->list_order}";
if ($page >= 0) $sql .= ' LIMIT '.($this->list_recspage * $page).", {$this->list_recspage}";
! dv(3, "ShowList SELECT", $sql);
if (!($rs = $this->db->Query($sql))) {
$this->error = TB_ERR_DB;
--- 300,304 ----
if (!empty($this->list_order)) $sql .= " ORDER BY {$this->list_order}";
if ($page >= 0) $sql .= ' LIMIT '.($this->list_recspage * $page).", {$this->list_recspage}";
! if (!empty($debug)) dv(3, "ShowList SELECT", $sql);
if (!($rs = $this->db->Query($sql))) {
$this->error = TB_ERR_DB;
***************
*** 351,355 ****
if (strlen($where)) $sql .= " WHERE $where";
}
! dv(3, "NumPages SELECT", $sql);
if (!($rs = $this->db->Query($sql))) {
$this->error = TB_ERR_DB;
--- 351,355 ----
if (strlen($where)) $sql .= " WHERE $where";
}
! if (!empty($debug)) dv(3, "NumPages SELECT", $sql);
if (!($rs = $this->db->Query($sql))) {
$this->error = TB_ERR_DB;
|