Coder Social home page Coder Social logo

Comments (3)

sshamilton avatar sshamilton commented on July 17, 2024

I had the same problem when moving to 3.0.7, however even after turning off uniqueness for the column, the problem persisted.

from activerecord-jdbc-adapter.

nicksieger avatar nicksieger commented on July 17, 2024

Sure enough, we have a failing test already for it:

  1) Error:
test_validates_uniqueness_of_strings_case_insensitive(MsSQLSimpleTest):
ActiveRecord::StatementInvalid: ActiveRecord::JDBCError: No column name was specified for column 2 of 't'.: SELECT t.* FROM (SELECT ROW_NUMBER() OVER(ORDER BY [validates_uniqueness_of].id) AS _row_num, 1 FROM [validates_uniqueness_of] WHERE ([validates_uniqueness_of].[cs_string] = N'1')) AS t WHERE t._row_num BETWEEN 1 AND 1

from activerecord-jdbc-adapter.

arkadiyk avatar arkadiyk commented on July 17, 2024

after some investigation I found out that this problem caused by new logic in AR .exists? method. I created an issue with Rails : rails/rails#1623

from activerecord-jdbc-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.