Code Monkey home page Code Monkey logo

Comments (9)

niphlod avatar niphlod commented on August 17, 2024

historical ones. mssql2:// is rather an experiment.

from pydal.

ilvalle avatar ilvalle commented on August 17, 2024

Given that, I'd set boolean as bit.

from pydal.

mdipierro avatar mdipierro commented on August 17, 2024

No. That would break existing code. MSSQL2Adapter was created for those users who wanted a non-boolean mapping. We do not know that somebody is not relying on it. Why do you want to change it?

On Feb 17, 2015, at 9:45 AM, Paolo Valleri [email protected] wrote:

Given that, I'd set boolean as bit.


Reply to this email directly or view it on GitHub.

from pydal.

ilvalle avatar ilvalle commented on August 17, 2024

I use MSSQL2Adapter for a legacy db where boolean types are defined as bit. I fixed it on my local copy. If MSSQL2Adapter is marked experimental, we can still update it?

from pydal.

niphlod avatar niphlod commented on August 17, 2024

Mssql2 is a proof of concept of using unicode-capable fields. It's legacy,old and should be reviewed. Of course changing boolean mapping will break compatibility with current models

from pydal.

ilvalle avatar ilvalle commented on August 17, 2024

@mdipierro I've just realized that MSSQL2Adapter is broken anyway.
The following return False.

db = DAL('mssql2://user:passwd@ip/db')
db.define_table('tt', Field('aa', 'boolean', default=True))
db.tt.insert(aa=True)
db().select(db.tt.aa)[0].aa == True

Given that I guess no one is really using this adapter. Despite the backward compatibility, I propose to update it by switching the boolean type from CHAR(1) to BIT

from pydal.

mdipierro avatar mdipierro commented on August 17, 2024

We do not know that nobody is using it. Can we make another one and
deprecate this?
On Mar 25, 2015 12:37 AM, "Paolo Valleri" [email protected] wrote:

@mdipierro https://github.com/mdipierro I've just realized that
MSSQL2Adapter is broken anyway.
The following return False.

db = DAL('mssql2://user:passwd@ip/db')
db.define_table('tt', Field('aa', 'boolean', default=True))
db.tt.insert(aa=True)
db().select(db.tt.aa)[0].aa == True

Given that I guess no one is really using this adapter. Despite the
backward compatibility, I propose to update it by switching the boolean
type from CHAR(1) to BIT


Reply to this email directly or view it on GitHub
#62 (comment).

from pydal.

ilvalle avatar ilvalle commented on August 17, 2024

Yes we could. The fact is that, the adapter is broken in a very basic operation. Given that I think we are in the position of fixing and breaking the compatibility, isn't?

from pydal.

mdipierro avatar mdipierro commented on August 17, 2024

Will not be able to look at the code until later. Meanwhile feel free to
make a pr
On Mar 25, 2015 9:28 AM, "Paolo Valleri" [email protected] wrote:

Yes we could. The fact is that, the adapter is broken in a very basic
operation. Given that I think we are in the position of fixing and breaking
the compatibility, isn't?


Reply to this email directly or view it on GitHub
#62 (comment).

from pydal.

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.