MCPcopy Create free account
hub / github.com/Kitware/VTK / ValidPreparedStatementSQL

Method ValidPreparedStatementSQL

IO/MySQL/vtkMySQLQuery.cxx:416–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414//------------------------------------------------------------------------------
415
416bool vtkMySQLQueryInternals::ValidPreparedStatementSQL(const char* query)
417{
418 if (!query)
419 return false;
420
421 if (!LOWERCASE_COMPARE("call", query))
422 {
423 return true;
424 }
425 else if (!LOWERCASE_COMPARE("create table", query))
426 {
427 return true;
428 }
429 else if (!LOWERCASE_COMPARE("delete", query))
430 {
431 return true;
432 }
433 else if (!LOWERCASE_COMPARE("do", query))
434 {
435 return true;
436 }
437 else if (!LOWERCASE_COMPARE("insert", query))
438 {
439 return true;
440 }
441 else if (!LOWERCASE_COMPARE("replace", query))
442 {
443 return true;
444 }
445 else if (!LOWERCASE_COMPARE("select", query))
446 {
447 return true;
448 }
449 else if (!LOWERCASE_COMPARE("set", query))
450 {
451 return true;
452 }
453 else if (!LOWERCASE_COMPARE("update", query))
454 {
455 return true;
456 }
457 return false;
458}
459
460//------------------------------------------------------------------------------
461

Callers 1

SetQueryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected