comparison 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
comparison
equal deleted inserted replaced
59:318c1ccb787c 60:412e30336847
54 << "expecting the DB schema version " << expectedVersion 54 << "expecting the DB schema version " << expectedVersion
55 << ", but this plugin is only compatible with version 6"; 55 << ", but this plugin is only compatible with version 6";
56 throw Orthanc::OrthancException(Orthanc::ErrorCode_Plugin); 56 throw Orthanc::OrthancException(Orthanc::ErrorCode_Plugin);
57 } 57 }
58 58
59 if (!MySQLDatabase::IsAlphanumericString(parameters_.GetDatabase())) 59 if (!MySQLDatabase::IsValidDatabaseIdentifier(parameters_.GetDatabase()))
60 { 60 {
61 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); 61 throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange);
62 } 62 }
63 63
64 if (clearAll_) 64 if (clearAll_)