/[libdata]/trunk/include/xx_pear_db.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/include/xx_pear_db.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 50 by dpavlin, Fri Mar 5 22:38:33 2004 UTC revision 52 by dpavlin, Fri Mar 5 23:38:19 2004 UTC
# Line 59  function xx_fetch_array ($rs) { Line 59  function xx_fetch_array ($rs) {
59    
60    
61  function xx_insert_id($con = 0) {  function xx_insert_id($con = 0) {
62    
63            die ("xx_insert_id called");
64    
65          if ($con == 0) {          if ($con == 0) {
66                  $con = $GLOBALS['xx_dbh'];                  $con = $GLOBALS['xx_dbh'];
67          }          }
# Line 119  function xx_query($sql, $con = 0) { Line 122  function xx_query($sql, $con = 0) {
122    
123          XXX_debug("xx_query [transformed]: $sql");          XXX_debug("xx_query [transformed]: $sql");
124    
         $ret = $con->query($sql);  
           
125          $GLOBALS["xx_element_nr $ret"] = 0;          $GLOBALS["xx_element_nr $ret"] = 0;
126    
127            $ret = $con->query($sql);
128    
129            if ($db->isError($ret)) {
130                    #die($db->getUserInfo());
131                    die($db->DebugInfo());
132            }
133    
134  #       $GLOBALS["pg_last_oid"] = pg_last_oid($ret);  #       $GLOBALS["pg_last_oid"] = pg_last_oid($ret);
135          if ($ret) {          if ($ret) {
136                  return $ret;                  return $ret;

Legend:
Removed from v.50  
changed lines
  Added in v.52

  ViewVC Help
Powered by ViewVC 1.1.26