MCPcopy Create free account
hub / github.com/cmu-db/benchbase / getMaxColSQL

Method getMaxColSQL

src/main/java/com/oltpbenchmark/util/SQLUtil.java:532–536  ·  view source on GitHub ↗
(DatabaseType dbType, Table catalog_tbl, String col)

Source from the content-addressed store, hash-verified

530 }
531
532 public static String getMaxColSQL(DatabaseType dbType, Table catalog_tbl, String col) {
533 String tableName =
534 (dbType.shouldEscapeNames() ? catalog_tbl.getEscapedName() : catalog_tbl.getName());
535 return String.format("SELECT MAX(%s) FROM %s", col, tableName);
536 }
537
538 public static String selectColValues(DatabaseType databaseType, Table catalog_tbl, String col) {
539 String tableName =

Callers 2

makeWorkersImplMethod · 0.95
makeWorkersImplMethod · 0.95

Calls 4

shouldEscapeNamesMethod · 0.80
getEscapedNameMethod · 0.80
formatMethod · 0.80
getNameMethod · 0.65

Tested by

no test coverage detected