Skip to content

Commit

Permalink
dbeaver#22963 Add constant variable for supportsTrigger function in C…
Browse files Browse the repository at this point in the history
…ubridUser
  • Loading branch information
longhaseng52 committed May 15, 2024
1 parent b9d03fe commit 6289404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ public class CubridConstants
public static final String REUSE_OID = "is_reuse_oid_class";
public static final String NAME = "name";
public static final String COMMENT = "comment";
public static final String DBA = "dba";
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import org.jkiss.code.NotNull;
import org.jkiss.code.Nullable;
import org.jkiss.dbeaver.DBException;
import org.jkiss.dbeaver.ext.cubrid.CubridConstants;
import org.jkiss.dbeaver.ext.generic.model.GenericDataSource;
import org.jkiss.dbeaver.ext.generic.model.GenericSchema;
import org.jkiss.dbeaver.ext.generic.model.GenericStructContainer;
Expand Down Expand Up @@ -97,7 +98,7 @@ public boolean supportsSynonym() {

@NotNull
public boolean supportsTrigger() {
return "dba".equals(getDataSource().getContainer().getConnectionConfiguration().getUserName());
return CubridConstants.DBA.equals(getDataSource().getContainer().getConnectionConfiguration().getUserName());
}

@NotNull
Expand Down

0 comments on commit 6289404

Please sign in to comment.