Skip to content

Merge commits made to 5-0-stable-with-odbc branch with 5-1-stable-odbc #11

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 8 commits into from
May 16, 2019

Conversation

lranj
Copy link

@lranj lranj commented May 15, 2019

Merge commits made to 5-0-stable-with-odbc branch with 5-1-stable-odbc

After this we can send pull requests to merge changes specific to 5-1-stable for rails 5.1 upgrade

Sukeerthi Adiga G and others added 8 commits May 15, 2019 18:57
ActiveRecord SQLServer Adapter defaults to TinyTDS. And the support for
ODBC has been removed. This is the effort to support Adapter with ODBC
Driver again.

- ruby-odbc is now pointed to https://github.com/cloudvolumes/ruby-odbc
- restricted sqlite3 version to < 1.4
…he Ruby::ODBC module

- The UTF8 version does not appear to support multiple statements in a single query. So things like "query; SELECT @@rowcount" do not work
- Error found: SerializedAttributeTest#test_json_read_legacy_null: ActiveRecord::RecordNotFound: Couldn't find Topic without an ID
- updated sql_for_insert method to use OUTPUT clause to get the ID of the last inserted record and with a single sql statement
- Error found: MigrationTestSQLServer::For changing column#test_0002_not drop the default contraint if just renaming: TypeError: no implicit conversion of String into Integer
- array needs to be flattened before calling select method
- Error found: ActiveRecord::ValueTooLong: ODBC::Error: 22001 (8152)[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]String or binary data would be truncated.
- Require odbc_utf8 so that  UTF-8 variant of the module is in use, and string data is automatically converted to/from Unicode
…ed as binary / ASCII-8Bit

- Added a check to make sure the object is String. ActiveRecord tests passes objects which are other than String.
- Added a check to make sure we are not modifying the frozen object. There are tests which passes frozen objects.
- TinyTDS gem for windows is compiled with OpenSSL with a version that has vulnerabilities
- Updating to use ruby-odbc as dependency, as this forked repository is for connecting to SQLServer in ODBC mode
@smlsml smlsml merged commit 1dc97fc into cloudvolumes:5-1-stable-with-odbc May 16, 2019
smlsml pushed a commit that referenced this pull request Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants