https://kotlinlang.org logo
#exposed
Title
# exposed
z

Zouyiu Ng (JoeWoo)

10/20/2023, 5:19 PM
Hello there, any solution about how to add hint into a SELECT statement? I want to force the query to run in primary MySQL instance, by adding the
/*FORCE_MASTER*/
at the begining of statement. Extending
Query
class(the child class named
HintQuery
) and overriding the
prepareSQL
function seems ok. However without a way to copy properties from original
Query
to
HintQuery
, some problems may happen.
2 Views