if (x.isForUpdate()) { println(); print0(ucase ? "FOR UPDATE" : "for update");
if (x.isForUpdate()) { println(); print0(ucase ? "FOR UPDATE" : "for update");
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.isForUpdate()) { println(); print0(ucase ? "FOR UPDATE" : "for update");
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); }
QueryInfo actionInfo = parseWhereClause(table, metaEventOperation, where, sqlSelectQueryBlock.isForUpdate()); LOG.debug("ActionInfo " + actionInfo.toString());
if ((mysqlSelectQuery.isForUpdate() || mysqlSelectQuery.isLockInShareMode()) && !sc.isAutocommit()) { rrs.setCanRunInReadDB(false);
if ((mysqlSelectQuery.isForUpdate() || mysqlSelectQuery.isLockInShareMode()) && !sc.isAutocommit()) { rrs.setCanRunInReadDB(false);
if (x.isForUpdate()) { println(); print0(ucase ? "FOR UPDATE" : "for update");
if (x.isForUpdate()) { println(); print0(ucase ? "FOR UPDATE" : "for update");