Skip to content

Instantly share code, notes, and snippets.

View prathamesh-sonpatki's full-sized avatar
🏠
Working from home

प्रथमेश Sonpatki prathamesh-sonpatki

🏠
Working from home
View GitHub Profile
===== Javascript Test Complete =====
You are using WebMock 1.13.0. VCR is known to work with WebMock >= 1.8.0, < 1.12. It may not work with this version.
Run options: --seed 10303
# Running:
....F........................................WARN: tilt autoloading 'sass' in a non thread-safe way; explicit require 'sass' suggested.
..........................
>> BUNDLE_GEMFILE=/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/gemfiles/rails42.gemfile bundle exec /Users/prathamesh/.rbenv/versions/jruby-1.7.9/bin/rake test_sqlite3
Using ActiveRecord::VERSION = 4.2.0.alpha
Loaded suite /Users/prathamesh/.rbenv/versions/jruby-1.7.9/lib/ruby/gems/shared/gems/rake-10.3.2/lib/rake/rake_test_loader
Started
P
===============================================================================
Pending: seems to fail with MRI the same way as with JRuby!
test_has_many_select_rows_with_relation(SQLite3HasManyThroughTest)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/has_many_through_test_methods.rb:57:in `test_has_many_select_rows_with_relation'
54: connection = ActiveRecord::Base.connection
def hello_github
"Hello"
end
>> BUNDLE_GEMFILE=/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/gemfiles/rails41.gemfile bundle exec /Users/prathamesh/.rbenv/versions/jruby-1.7.16/bin/rake test_postgres
Creating PostgreSQL (test) database: arjdbc_test
Using ActiveRecord::VERSION = 4.1.7
Loaded suite /Users/prathamesh/.rbenv/versions/jruby-1.7.16/lib/ruby/gems/shared/gems/rake-10.3.2/lib/rake/rake_test_loader
Started
E
===============================================================================
Error: test: returns jdbc version 3 on java 5 (only for compatibility)(Jdbc::PostgresTest)
ArgumentError: wrong number of arguments (1 for 3)
/Users/prathamesh/Projects/sources/activerecord-jdbc-adapter/test/db/postgresql/jdbc_postgres_test.rb:10:in `PostgresTest'
diff --git a/src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java b/src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java
index 6f1a441..b099b77 100644
--- a/src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java
+++ b/src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java
@@ -1,40 +1,184 @@
-/*
- * The MIT License
+/***** BEGIN LICENSE BLOCK *****
+ * Copyright (c) 2012-2013 Karol Bucek <self@kares.org>
+ * Copyright (c) 2006-2010 Nick Sieger <nick@nicksieger.com>
@prathamesh-sonpatki
prathamesh-sonpatki / gist:85c9705c79759d756403
Created November 9, 2014 07:11
git stash does not go away
prathamesh ~/Projects/sources/activerecord-jdbc-adapter 1.9.3 (prathamesh-sonpatki/activerecord-jdbc-adapter) -> 1-3-stable
$ git status
On branch 1-3-stable
Your branch is up-to-date with 'upstream/1-3-stable'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: src/java/arjdbc/mssql/MssqlRubyJdbcConnection.java
FormBuilder class - https://github.com/rails/rails/blob/cd77755ae46616f24ae0ad2e586be528bb326be1/actionview/lib/action_view/helpers/form_helper.rb
# https://github.com/rails/rails/issues/18273
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.1.8'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
# https://github.com/rails/rails/issues/18273
# Activate the gem you are reporting the issue against.
gem 'activerecord', '4.2.0'
require 'active_record'
require 'minitest/autorun'
require 'logger'
# Ensure backward compatibility with Minitest 4
Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
module ActionView
module Helpers
module Tags # :nodoc:
class Base # :nodoc:
def options_for_rendering(default_options)
default_options
end
end
class TextField < Base # :nodoc: