Git Product home page Git Product logo

Comments (3)

WikiRik avatar WikiRik commented on May 24, 2024 1

@hjamil-24 could you or one of your team take a look at this? Do we need to set maxSize in the options somewhere to not be the default 255?

from sequelize.

AbuzarHussain avatar AbuzarHussain commented on May 24, 2024 1

@hjamil-24 I forgot to update the 1024 max length in the actual model definition and only updated that in the migration file, my bad. The column definitions were different in the migration script file and the model definition. So, It assumed the default 255 chars for that column while inserting the data as that is standard for varchar2 but at the database end it was set to 1024. This was a issue on my end. Thanks for your help.

from sequelize.

hjamil-24 avatar hjamil-24 commented on May 24, 2024

We don't need any settings. If text : {type: Sequelize.STRING(1024)} is defined, that would allow the user to enter string of more than 255 chars.

@AbuzarHussain, the example you provided doesn't throw error (when written completely).
Can you provide with complete demo example, if the issue is still there?
What kind of data is provided? (take length consideration into account when using multibyte data)
Has there been any database configuration you might have done earlier?
Happy to help :)

from sequelize.

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.