prevent needing analyze privilege when using getIndexInfo
Signed-off-by: nevafuse <nevafuse@gmail.com>
This commit is contained in:
parent
459abd144e
commit
0634882b7c
|
@ -1173,7 +1173,7 @@ public class JDBCSessionIdManager extends AbstractSessionIdManager
|
|||
|
||||
boolean index1Exists = false;
|
||||
boolean index2Exists = false;
|
||||
try (ResultSet result = metaData.getIndexInfo(null, schemaName, tableName, false, false))
|
||||
try (ResultSet result = metaData.getIndexInfo(null, schemaName, tableName, false, true))
|
||||
{
|
||||
while (result.next())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue