Fix tweaks
This commit is contained in:
parent
704c4120d3
commit
7766a35651
@ -876,7 +876,7 @@ func (this *Applier) ExpectProcess(sessionId int64, stateHint, infoHint string)
|
|||||||
id != connection_id()
|
id != connection_id()
|
||||||
and ? in (0, id)
|
and ? in (0, id)
|
||||||
and state like concat('%', ?, '%')
|
and state like concat('%', ?, '%')
|
||||||
and info like concat('%', ?, '%')`
|
and info like concat('%', ?, '%')`
|
||||||
err := sqlutils.QueryRowsMap(this.db, query, func(m sqlutils.RowMap) error {
|
err := sqlutils.QueryRowsMap(this.db, query, func(m sqlutils.RowMap) error {
|
||||||
found = true
|
found = true
|
||||||
return nil
|
return nil
|
||||||
|
@ -227,9 +227,13 @@ func BuildRangeInsertQuery(databaseName, originalTableName, ghostTableName strin
|
|||||||
%s.%s
|
%s.%s
|
||||||
(%s)
|
(%s)
|
||||||
(
|
(
|
||||||
select %s from %s.%s
|
select %s
|
||||||
|
from
|
||||||
|
%s.%s
|
||||||
force index (%s)
|
force index (%s)
|
||||||
where (%s and %s) %s
|
where
|
||||||
|
(%s and %s)
|
||||||
|
%s
|
||||||
)`,
|
)`,
|
||||||
databaseName, originalTableName, databaseName, ghostTableName, mappedSharedColumnsListing,
|
databaseName, originalTableName, databaseName, ghostTableName, mappedSharedColumnsListing,
|
||||||
sharedColumnsListing, databaseName, originalTableName, uniqueKey,
|
sharedColumnsListing, databaseName, originalTableName, uniqueKey,
|
||||||
@ -283,7 +287,8 @@ func BuildUniqueKeyRangeEndPreparedQueryViaOffset(databaseName, tableName string
|
|||||||
%s
|
%s
|
||||||
from
|
from
|
||||||
%s.%s
|
%s.%s
|
||||||
where %s and %s
|
where
|
||||||
|
%s and %s
|
||||||
order by
|
order by
|
||||||
%s
|
%s
|
||||||
limit 1
|
limit 1
|
||||||
@ -340,7 +345,8 @@ func BuildUniqueKeyRangeEndPreparedQueryViaTemptable(databaseName, tableName str
|
|||||||
%s
|
%s
|
||||||
from
|
from
|
||||||
%s.%s
|
%s.%s
|
||||||
where %s and %s
|
where
|
||||||
|
%s and %s
|
||||||
order by
|
order by
|
||||||
%s
|
%s
|
||||||
limit %d) select_osc_chunk
|
limit %d) select_osc_chunk
|
||||||
|
Loading…
Reference in New Issue
Block a user