/[rserv]/bin/MasterAddTable
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 /bin/MasterAddTable

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

revision 1.3 by dpavlin, Tue Aug 5 21:10:28 2003 UTC revision 1.4 by dpavlin, Sun Oct 26 21:51:53 2003 UTC
# Line 56  $result = $conn->exec("select pgc.oid, p Line 56  $result = $conn->exec("select pgc.oid, p
56  die $conn->errorMessage if $result->resultStatus ne PGRES_TUPLES_OK;  die $conn->errorMessage if $result->resultStatus ne PGRES_TUPLES_OK;
57    
58  my @row = $result->fetchrow;  my @row = $result->fetchrow;
59  die "Can't find table/key\n" if ! defined $row[0] || ! defined $row[1];  die "Can't find key '$keyname' for table '$table' in database '$dbname'\n" if ! defined $row[0] || ! defined $row[1];
60    
61  $result = $conn->exec("create trigger _RSERV_TRIGGER_T_ after" .  $result = $conn->exec("create trigger _RSERV_TRIGGER_T_ after" .
62                        " insert or update or delete on \"$table\"" .                        " insert or update or delete on \"$table\"" .

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.26