Skip to content

Instantly share code, notes, and snippets.

Avatar
🕵️‍♂️
Looking for bugs 🦟

प्रथमेश Sonpatki prathamesh-sonpatki

🕵️‍♂️
Looking for bugs 🦟
View GitHub Profile
View gist:883f64b15fbf1b41bce5
===== 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.
..........................
View sqlite3.log
>> 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
View gist:5ebd3896238d17cff2b6
>> 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'
View gist:a63bfe00c51efeb2ca19
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>
View gist:85c9705c79759d756403
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
View gist:35f43c2fce52e1d92203
FormBuilder class - https://github.com/rails/rails/blob/cd77755ae46616f24ae0ad2e586be528bb326be1/actionview/lib/action_view/helpers/form_helper.rb
View gist:c0ea72ebc1bedd92924c
# 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)
View gist:e76270335ef0246ace59
# 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)
View gist:4375ed6e9bcbfc841ad1
module ActionView
module Helpers
module Tags # :nodoc:
class Base # :nodoc:
def options_for_rendering
default_options_for_rendering.merge(user_options_for_rendering)
end
def default_options_for_rendering
{}