All Downloads are FREE. Search and download functionalities are using the official Maven repository.

CommonDbFramework.0.1.0.source-code.sql-error-codes.xml Maven / Gradle / Ivy

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN" "http://www.springframework.org/dtd/spring-beans-2.0.dtd">

<!--
	- Default SQL error codes for well-known databases.
	- Can be overridden by definitions in a "sql-error-codes.xml" file
	- in the root of the class path.
	-
	- (Which is what I've done here - this was in the Spring JDBC jar. Just cut out
	-  the H2 set.)
	-
	- If the Database Product Name contains characters that are invalid
	- to use in the id attribute (like a space) then we need to add a property
	- named "databaseProductName"/"databaseProductNames" that holds this value.
	- If this property is present, then it will be used instead of the id for
	- looking up the error codes based on the current database.
	-->
<beans>

	<bean id="H2" class="org.springframework.jdbc.support.SQLErrorCodes">
		<property name="badSqlGrammarCodes">
			<value>42000,42001,42101,42102,42111,42112,42121,42122,42132</value>
		</property>
		<property name="dataAccessResourceFailureCodes">
			<value>90046,90100,90117,90121,90126</value> <!--  90013 added by MJG doesn't cause the expected exception to be thrown -->
		</property>
		<property name="dataIntegrityViolationCodes">
			<value>22003,22012,22025,23000,23001</value>
		</property>
	</bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy