add opengauss

This commit is contained in:
Looly 2023-11-29 04:04:05 +08:00
parent 27f58fb91d
commit f58625b144
2 changed files with 7 additions and 0 deletions

View File

@ -176,6 +176,9 @@ public class DialectFactory implements DriverNamePool {
} else if (nameContainsProductInfo.contains("sybase")) { } else if (nameContainsProductInfo.contains("sybase")) {
// Sybase // Sybase
driver = DRIVER_SYBASE; driver = DRIVER_SYBASE;
} else if (nameContainsProductInfo.contains("opengauss")) {
// OpenGauss
driver = DRIVER_OPENGAUSS;
} }
return driver; return driver;

View File

@ -120,5 +120,9 @@ public interface DriverNamePool {
* JDBC 驱动 Sybase * JDBC 驱动 Sybase
*/ */
String DRIVER_SYBASE = "com.sybase.jdbc4.jdbc.SybDriver"; String DRIVER_SYBASE = "com.sybase.jdbc4.jdbc.SybDriver";
/**
* JDBC 驱动 OpenGauss
*/
String DRIVER_OPENGAUSS = "org.opengauss.Driver";
} }