give better example for delEntries

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12619 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-05-11 11:40:38 +00:00
parent 1fb38d63e4
commit 3a8ee9cf5b

View File

@ -3119,11 +3119,13 @@ sub getAllAttribs
Error:
Example:
my $table=xCAT::Table->new("notification", -create => 1,-autocommit => 0);
my %key_col = (filename=>$fname);
$table->delEntries(\%key_col);
$table->commit;
my $table=xCAT::Table->new("nodelist");
my %keyhash;
$keyhash{node} = "node1";
$keyhash{groups} = "compute1";
$table->delEntries(\%keyhash);
Build delete statement and'ing the elements of the hash
DELETE FROM nodelist WHERE ("groups" = "compute1" AND "node" = "node1")
Comments:
none