diff MySQL/Plugins/MySQLIndex.cpp @ 60:412e30336847

allowing dollars and underscores in MySQL database identifiers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Nov 2018 15:06:08 +0100
parents 71eca9b0442a
children 714c5d2bee76
line wrap: on
line diff
--- a/MySQL/Plugins/MySQLIndex.cpp	Sun Oct 28 12:29:22 2018 +0100
+++ b/MySQL/Plugins/MySQLIndex.cpp	Mon Nov 19 15:06:08 2018 +0100
@@ -56,7 +56,7 @@
       throw Orthanc::OrthancException(Orthanc::ErrorCode_Plugin);
     }
 
-    if (!MySQLDatabase::IsAlphanumericString(parameters_.GetDatabase()))
+    if (!MySQLDatabase::IsValidDatabaseIdentifier(parameters_.GetDatabase()))
     {
       throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
     }