You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2014/12/09 17:18:45 UTC

svn commit: r1644105 - /vcl/trunk/web/.ht-inc/managementnode.php

Author: jfthomps
Date: Tue Dec  9 16:18:45 2014
New Revision: 1644105

URL: http://svn.apache.org/r1644105
Log:
VCL-776 - rework resource code to have a base class for all resources and inheriting classes for each resource type

managementnode.php: modified AJsaveResource: put backticks (`) around "keys" when adding it to the query since it is a reserved mysql keyword

Modified:
    vcl/trunk/web/.ht-inc/managementnode.php

Modified: vcl/trunk/web/.ht-inc/managementnode.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/managementnode.php?rev=1644105&r1=1644104&r2=1644105&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/managementnode.php (original)
+++ vcl/trunk/web/.ht-inc/managementnode.php Tue Dec  9 16:18:45 2014
@@ -478,7 +478,7 @@ class ManagementNode extends Resource {
 				$updates[] = "imagelibkey = '{$data['imagelibkey']}'";
 			# keys
 			if($data['keys'] != $olddata['keys'])
-				$updates[] = "keys = '{$data['keys']}'";
+				$updates[] = "`keys` = '{$data['keys']}'";
 			# sshport
 			if($data['sshport'] != $olddata['sshport'])
 				$updates[] = "sshport = '{$data['sshport']}'";