Skip to content

Commit 4beb54c

Browse files
Merge 5.4.9 into 5.5.x
2 parents 13dd509 + ac2ff3a commit 4beb54c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1166
-105
lines changed

appveyor.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ before_test:
7171
'Odbc' { Start-Service 'MSSQL$SQL2017' }
7272
'PostgreSQL' {
7373
# Enable prepared transactions
74-
Add-Content -Path 'C:\Program Files\PostgreSQL\10\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
75-
Start-Service 'postgresql-x64-10'
74+
Add-Content -Path 'C:\Program Files\PostgreSQL\13\data\postgresql.conf' -Value "`r`nmax_prepared_transactions = 100"
75+
Start-Service 'postgresql-x64-13'
7676
}
7777
'SqlServer2008' { Start-Service 'MSSQL$SQL2017' }
7878
'SqlServer2008-MicrosoftDataSqlClientDriver' { Start-Service 'MSSQL$SQL2017' }

build-common/NHibernate.props

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
<NhAppTargetFrameworks Condition ="$(NhAppTargetFrameworks) == ''">net48;net6.0</NhAppTargetFrameworks>
1818
<NhLibTargetFrameworks Condition ="$(NhLibTargetFrameworks) == ''">net461;net48;netcoreapp2.0;netstandard2.0;netstandard2.1;net6.0</NhLibTargetFrameworks>
19+
<RuntimeFrameworkVersion Condition="'$(TargetFramework)' == 'netcoreapp2.0'">2.0.3</RuntimeFrameworkVersion>
1920
<NhNetFx>false</NhNetFx>
2021
<NhNetFx Condition="$(TargetFramework.StartsWith('net4'))">true</NhNetFx>
2122
<!-- Visual Basic requires to use coma (,) as a separator, other project types - semicolon (;) -->

doc/reference/modules/configuration.xml

+14-6
Original file line numberDiff line numberDiff line change
@@ -871,6 +871,20 @@ var session = sessions.OpenSession(conn);
871871
</para>
872872
</entry>
873873
</row>
874+
<row>
875+
<entry>
876+
<literal>escape_backslash_in_strings</literal>
877+
</entry>
878+
<entry>
879+
Indicates if the database needs to have backslash escaped in string literals.
880+
The default value is dialect dependant. That is <literal>false</literal> for
881+
most dialects.
882+
<para>
883+
<emphasis role="strong">eg.</emphasis>
884+
<literal>true</literal> | <literal>false</literal>
885+
</para>
886+
</entry>
887+
</row>
874888
<row>
875889
<entry>
876890
<literal>show_sql</literal>
@@ -1515,12 +1529,6 @@ in the parameter binding.</programlisting>
15151529
<entry><literal>NHibernate.Dialect.PostgreSQLDialect</literal></entry>
15161530
<entry></entry>
15171531
</row>
1518-
<row>
1519-
<entry>PostgreSQL</entry>
1520-
<entry><literal>NHibernate.Dialect.PostgreSQLDialect</literal></entry>
1521-
<entry>
1522-
</entry>
1523-
</row>
15241532
<row>
15251533
<entry>PostgreSQL 8.1</entry>
15261534
<entry><literal>NHibernate.Dialect.PostgreSQL81Dialect</literal></entry>
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Installation steps for PostgreSQL for NH TeamCity:
33

4-
1. Download PostgreSQL (postgresql-9.0.3-1-windows_x64.exe): http://www.enterprisedb.com/products-services-training/pgdownload#windows;
4+
1. Download PostgreSQL: https://www.enterprisedb.com/downloads/postgres-postgresql-downloads;
55
2. Run the installer ... when prompted to make a password for the service account, make it 'password';
66
3. Leave the port number at the default (5432), and leave the default locale;
77
4. The setup should install PostgreSQL on the machine;
@@ -12,8 +12,8 @@ Installation steps for PostgreSQL for NH TeamCity:
1212

1313
Creating the NH user:
1414

15-
a. Open pgAdmin III (start -> programs -> PostgreSQL 9.0 -> pgAdmin III);
16-
b. right-click the PostgreSQL 9.0 database, select connect, and enter the password from step 2 above;
17-
c. right-clilck the Login Roles, and select "New Login Role ...";
18-
d. create a login with "Role name=nhibernate", "Password=nhibernate", and select Superuser on the Role privileges tab.
15+
a. Open pgAdmin 4;
16+
b. Right-click the PostgreSQL database, select connect, and enter the password from step 2 above;
17+
c. Right-clilck the Login Roles, and select "New Login Role ...";
18+
d. Create a login with "Role name=nhibernate", "Password=nhibernate", and select Superuser on the Role privileges tab.
1919

releasenotes.txt

+20
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,26 @@ Release notes - NHibernate - Version 5.5.0
105105
* #3412 Revive hql ParsingFixture
106106

107107

108+
Build 5.4.9
109+
=============================
110+
111+
Release notes - NHibernate - Version 5.4.9
112+
113+
6 issues were resolved in this release, including CVE-2024-39677.
114+
115+
** Bug
116+
117+
* #3547 Handle SQL injection vulnerabilities within ObjectToSQLString
118+
119+
** Task
120+
121+
* #3576 Release 5.4.9
122+
* #3558 Migrate AppVeyor & TC builds to PostgreSQL 13
123+
* #3545 Upgrade Npgsql to a non vulnerable version
124+
* #3544 Upgrade vulnerable test dependencies
125+
* #3517 Obsolete vulnerable literal AddColumn
126+
127+
108128
Build 5.4.8
109129
=============================
110130

src/NHibernate.Config.Templates/SapSQLAnywhere.cfg.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for your own use before compiling tests in Visual Studio.
1515
<property name="connection.connection_string">
1616
UID=DBA;PWD=sql;Server=localhost;DBN=nhibernate;DBF=c:\nhibernate.db;ASTOP=No;Enlist=false;
1717
</property>
18-
<property name="dialect">NHibernate.Dialect.SybaseSQLAnywhere12Dialect</property>
18+
<property name="dialect">NHibernate.Dialect.SapSQLAnywhere17Dialect</property>
1919
<property name="query.substitutions">true=1;false=0</property>
2020
</session-factory>
2121
</hibernate-configuration>

0 commit comments

Comments
 (0)