Coder Social home page Coder Social logo

blob not null 字段同步问题 about otter HOT 5 CLOSED

alibaba avatar alibaba commented on August 14, 2024
blob not null 字段同步问题

from otter.

Comments (5)

agapple avatar agapple commented on August 14, 2024

源库有not null限制,怎么插入的null值?

from otter.

zing228 avatar zing228 commented on August 14, 2024

源库插入了空字符,绕过了not null限制,但是在otter解析的时候空值被解析成了null值,目前仅在blob not null字段上出现了这种情况,不知道其他字段类型是否也有这种情况,等会儿我测试一下,给个反馈

from otter.

zing228 avatar zing228 commented on August 14, 2024

经过测试,所有binary类型的字段都有这个问题,其他类型字段无此问题:
BINARY(M)
VARBINARY(M)
TINYBLOB
BLOB[(M)]
MEDIUMBLOB
LONGBLOB

from otter.

agapple avatar agapple commented on August 14, 2024

是的,你看我修复的代码就知道,所有非字符串类型的都有这风险. 之前mysql->oracle有个逻辑,如果是空字符可等价于NULL进行处理,而mysql中NULL,空字符是不等价,isEmptyStringNulled=false.

from otter.

zing228 avatar zing228 commented on August 14, 2024

看到你代码了,非常感谢!

from otter.

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.