Changeset 611 for branches


Ignore:
Timestamp:
10/16/13 13:04:53 (11 years ago)
Author:
Kris Deugau
Message:

/branches/stable

Fix minor issue with node hack; if an update is done with it set "empty"
(--), the update fails with a Postgres internals error due to trying to
insert '--' in a numeric field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/cgi-bin/IPDB.pm

    r610 r611  
    10461046    $dbh->do($sql, undef, @vallist);
    10471047
    1048     if ($args{node}) {
     1048    if ($args{node} && $args{node} ne '--') {
    10491049      # done with delete/insert so we don't have to worry about funkyness updating a node ref that isn't there
    10501050      $dbh->do("DELETE FROM noderef WHERE block = ?", undef, ($args{block}) );
Note: See TracChangeset for help on using the changeset viewer.