Commit 8e09ee4c authored by Kirk Webb's avatar Kirk Webb

Oops - escape the escape characters.

Fugly.
parent 37811c83
......@@ -94,13 +94,13 @@ sub DoUpdate($$$)
"'experiments:eid',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','vname','text','regex',".
"'^[-\\w]+$',1,32,NULL)");
"'^[-\\\\w]+\$',1,32,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','type','text','regex',".
"'^[-\\w]*$',0,30,NULL)");
"'^[-\\\\w]*\$',0,30,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','role','text','regex',".
"'^(remote|local)$',0,0,NULL)");
"'^(remote|local)\$',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstores','size','int','redirect',".
"'default:int',0,0,NULL)");
......@@ -115,10 +115,10 @@ sub DoUpdate($$$)
"'virt_blockstores:vname',0,0,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstore_attributes','attrkey','text','regex',".
"'^[-\\w]+$',1,64,NULL)");
"'^[-\\\\w]+\$',1,64,NULL)");
DBQueryFatal("REPLACE INTO table_regex VALUES ".
"('virt_blockstore_attributes','attrvalue','text','regex',".
"'^[-\\w\\.\\+,\\s\\/:]+$',0,255,NULL)");
"'^[-\\\\w\\\\.\\\\+,\\\\s\\\\/:]+\$',0,255,NULL)");
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment