Show
Ignore:
Timestamp:
08/11/08 21:21:53 (6 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1218489713 +0000
git-parent:

[8c44e3b0e275f77a5f98f49c8b0ae180976694e9]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1218489713 +0000
Message:

make this stuff use sid instead of uuid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • ui/web/lib/Reconnoiter_DB.php

    ree17710 re45ae44  
    3232  } 
    3333  function get_var_for_window($uuid, $name, $start, $end, $expected) { 
    34     $sth = $this->db->prepare("select * from stratcon.fetch_varset(?,?,?,?,?)"); 
     34    $sth = preg_match('/^\d+$/', $uuid) ? 
     35      $this->db->prepare("select * from stratcon.fetch_varset(? ::int,?,?,?,?)") : 
     36      $this->db->prepare("select * from stratcon.fetch_varset(? ::uuid,?,?,?,?)"); 
    3537    $sth->execute(array($uuid,$name,$start,$end,$expected)); 
    3638    $rv = array(); 
     
    164166      if(!isset($rv[$label]))  
    165167        $rv[$label] = array ('id' => $row['id'], 
     168                             'sid' => $row['sid'], 
    166169                             'text' => array(), 
    167170                             'numeric' => array() );