if (x.isLockInShareMode()) { println(); print0(ucase ? "LOCK IN SHARE MODE" : "lock in share mode");
if (x.isLockInShareMode()) { println(); print0(ucase ? "LOCK IN SHARE MODE" : "lock in share mode");
protected void buildForUpdate(TableNode query, StringBuilder sb) { if (query.getAst() != null) { SQLSelectQuery queryblock = query.getAst().getSelect().getQuery(); if (queryblock instanceof MySqlSelectQueryBlock) { if (((MySqlSelectQueryBlock) queryblock).isForUpdate()) { sb.append(" FOR UPDATE"); } else if (((MySqlSelectQueryBlock) queryblock).isLockInShareMode()) { sb.append(" LOCK IN SHARE MODE "); } } } } }
if (x.isLockInShareMode()) { println(); print0(ucase ? "LOCK IN SHARE MODE" : "lock in share mode");
private void tryAddLimit(SchemaConfig schema, TableConfig tableConfig, MySqlSelectQueryBlock mysqlSelectQuery) { if (schema.getDefaultMaxLimit() == -1) { return; } else if (mysqlSelectQuery.getLimit() != null) { return; } else if (!tableConfig.isNeedAddLimit()) { return; } else if (mysqlSelectQuery.isForUpdate() || mysqlSelectQuery.isLockInShareMode()) { return; } SQLLimit limit = new SQLLimit(); limit.setRowCount(new SQLIntegerExpr(schema.getDefaultMaxLimit())); mysqlSelectQuery.setLimit(limit); }
if ((mysqlSelectQuery.isForUpdate() || mysqlSelectQuery.isLockInShareMode()) && !sc.isAutocommit()) { rrs.setCanRunInReadDB(false);
if ((mysqlSelectQuery.isForUpdate() || mysqlSelectQuery.isLockInShareMode()) && !sc.isAutocommit()) { rrs.setCanRunInReadDB(false);
if (x.isLockInShareMode()) { println(); print0(ucase ? "LOCK IN SHARE MODE" : "lock in share mode");
if (x.isLockInShareMode()) { println(); print0(ucase ? "LOCK IN SHARE MODE" : "lock in share mode");