Skip to content

Commit 1aaae16

Browse files
committed
Use CONCAT_NULL_YIELDS_NULL for all TinyTDS connections. Fixes #262. Thanks @noel.
1 parent a5413ee commit 1aaae16

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
* 3.2.13 *
33

4+
* Use CONCAT_NULL_YIELDS_NULL for all TinyTDS connections. Fixes #262. Thanks @noel.
5+
* Fix for Azure SQL. Fixed #263. Thanks @eklipse2k8.
46
* Drop shoulda and use minitest-spec-rails!!!
57
* Test TinyTDS 0.6.0.
68
* Fixed the unit tests due to changes in ActiveRecord that removes blank config values.

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,13 @@ def connect
438438
client.execute("SET ANSI_PADDING ON").do
439439
client.execute("SET QUOTED_IDENTIFIER ON")
440440
client.execute("SET ANSI_WARNINGS ON").do
441-
client.execute("SET CONCAT_NULL_YIELDS_NULL ON").do
442441
else
443442
client.execute("SET ANSI_DEFAULTS ON").do
444443
client.execute("SET CURSOR_CLOSE_ON_COMMIT OFF").do
445444
client.execute("SET IMPLICIT_TRANSACTIONS OFF").do
446445
end
447446
client.execute("SET TEXTSIZE 2147483647").do
447+
client.execute("SET CONCAT_NULL_YIELDS_NULL ON").do
448448
end
449449
when :odbc
450450
if config[:dsn].include?(';')

0 commit comments

Comments
 (0)