本文整理匯總了Java中org.jooq.SQLDialect.POSTGRES_9_5屬性的典型用法代碼示例。如果您正苦於以下問題:Java SQLDialect.POSTGRES_9_5屬性的具體用法?Java SQLDialect.POSTGRES_9_5怎麽用?Java SQLDialect.POSTGRES_9_5使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.jooq.SQLDialect
的用法示例。
在下文中一共展示了SQLDialect.POSTGRES_9_5屬性的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: parameters
@Parameters(name = "{0}")
public static Object[] parameters() {
return new Object[] { new Object[] { SQLDialect.DERBY, sqlException("42802") },
new Object[] { SQLDialect.H2, sqlException(42000) },
new Object[] { SQLDialect.HSQLDB, sqlException(-22) },
new Object[] { SQLDialect.MARIADB, sqlException(1054) },
new Object[] { SQLDialect.MYSQL, sqlException(1054) },
new Object[] { SQLDialect.POSTGRES, sqlException("03000") },
new Object[] { SQLDialect.POSTGRES_9_3, sqlException("03000") },
new Object[] { SQLDialect.POSTGRES_9_4, sqlException("03000") },
new Object[] { SQLDialect.POSTGRES_9_5, sqlException("03000") } };
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:12,代碼來源:JooqExceptionTranslatorTests.java
示例2: test21
@Test(timeout = 4000)
public void test21() throws Throwable {
SQLDialect sQLDialect0 = SQLDialect.POSTGRES_9_5;
DefaultDSLContext defaultDSLContext0 = new DefaultDSLContext(sQLDialect0);
URL uRL0 = MockURL.getHttpExample();
// Undeclared exception!
try {
WorkspaceSnapshot.load(defaultDSLContext0, uRL0);
fail("Expecting exception: VerifyError");
} catch (VerifyError e) {
//
// Bad type on operand stack
// Exception Details:
// Location:
// com/fasterxml/jackson/databind/ObjectMapper.<clinit>()V @62: invokespecial
// Reason:
// Type 'com/fasterxml/jackson/databind/util/StdDateFormat' (current frame, stack[8]) is not assignable to 'java/text/DateFormat'
// Current Frame:
// bci: @62
// flags: { }
// locals: { }
// stack: { uninitialized 35, uninitialized 35, null, 'com/fasterxml/jackson/databind/AnnotationIntrospector', 'com/fasterxml/jackson/databind/introspect/VisibilityChecker', null, 'com/fasterxml/jackson/databind/type/TypeFactory', null, 'com/fasterxml/jackson/databind/util/StdDateFormat', null, 'java/util/Locale', null, 'com/fasterxml/jackson/core/Base64Variant' }
// Bytecode:
// 0x0000000: 1304 16b8 06ef b304 14bb 06f1 59b7 06f2
// 0x0000010: b306 e5b8 06f5 b306 e7bb 06f7 59b7 06f8
// 0x0000020: b306 e9bb 0102 5901 b206 e5b2 06e7 01b8
// 0x0000030: 00f7 01b2 06fd 01b8 0703 01b8 0709 b707
// 0x0000040: 0cb3 00fc 1307 0eb8 0713 b113 070e b807
// 0x0000050: 13bf
// Exception Handler Table:
// bci [0, 75] => handler: 75
// Stackmap Table:
// same_locals_1_stack_item_extended(@75,Object[#1587])
//
assertThrownBy("com.chiralbehaviors.CoRE.workspace.WorkspaceSnapshot",
e);
}
}
示例3: sqlDialect
@Override
protected SQLDialect sqlDialect() {
return SQLDialect.POSTGRES_9_5;
}
開發者ID:vladmihalcea,項目名稱:high-performance-java-persistence,代碼行數:4,代碼來源:AbstractJOOQPostgreSQLIntegrationTest.java