Skip to content

Enable named parameters on DB2CoreDriver #2546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 20, 2020

Conversation

hazzik
Copy link
Member

@hazzik hazzik commented Sep 17, 2020

Checked on IBM.Data.DB2.Core 1.2.2.100


How to run:

docker run -d --name db2 --privileged -p 50000:50000 -e LICENSE=accept -e DBNAME=nhdb -e DB2INST1_PASSWORD=nhibernate -e ARCHIVE_LOGS=false ibmcom/db2
<?xml version="1.0" encoding="utf-8"?>
<hibernate-configuration  xmlns="urn:nhibernate-configuration-2.2" >
	<session-factory name="NHibernate.Test">
		<property name="connection.driver_class">NHibernate.Driver.DB2CoreDriver</property>
		<property name="connection.connection_string">
			Server=localhost:50000;Database=nhdb;UID=db2inst1;PWD=nhibernate;Max Pool Size=100;Min Pool Size=10;
		</property>
		<property name="dialect">NHibernate.Dialect.DB2Dialect</property>
		<property name="show_sql">true</property>
	</session-factory>
</hibernate-configuration>

@hazzik hazzik merged commit a49b481 into nhibernate:master Sep 20, 2020
@hazzik hazzik deleted the db2core-named-parameters branch September 20, 2020 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants