Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
7d79812c
Commit
7d79812c
authored
May 24, 2006
by
Leigh B. Stoller
Browse files
Fix to how parameter description metadata is handled; I had three identical
queries all totally wrong.
parent
af33bbe0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/Template.pm.in
View file @
7d79812c
...
...
@@ -648,7 +648,9 @@ sub NewMetadata($$$$;$)
DBQueryWarn("update experiment_template_parameters set ".
" metadata_guid='
$
guid
', ".
" metadata_vers='
$
version
' ".
"where name=$safename");
"where parent_guid='
$
template_guid
' and ".
" parent_vers='
$
template_vers
' and ".
" name=$safename");
return -1
if (!$query_result);
}
...
...
@@ -789,7 +791,9 @@ sub ModifyMetadata($$$$)
DBQueryWarn("update experiment_template_parameters set ".
" metadata_guid='
$
parent_guid
', ".
" metadata_vers='
$
metadata_vers
' ".
"where name=$name")
"where parent_guid='
$
template_guid
' and ".
" parent_vers='
$
template_vers
' and ".
" name=$name")
or return -1
}
}
...
...
@@ -1048,7 +1052,9 @@ sub CopyMetadata($$$)
DBQueryWarn("update experiment_template_parameters set ".
" metadata_guid='
$
guid
', ".
" metadata_vers='
$
version
' ".
"where name=$name")
"where parent_guid='
$
from_guid
' and ".
" parent_vers='
$
to_vers
' and ".
" name=$name")
or return -1
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment