Comments (3)
@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.
@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.
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)
- Customize toJSON() for custom serialization logic HOT 6
- Can't make table queries. TypeError: _.includes is not a function HOT 1
- DATE parse function crashes in SQLite HOT 1
- PostgreSQL. Error in getQueryInterface().describeTable() with column comments and schemas
- Unable to find dialect at HOT 2
- Cyclic sequelize sync doesn't handle several cases in the non-cyclic version HOT 1
- Introducing @EncryptedAttribute() decorator
- Add `Model.exists()` to allow efficient checking of at least one matching row
- Filter As on Properties of Associated Bs But Still Return all Bs Associated to the Resulting A's
- Feature Request: support 'schema' for MySQL HOT 1
- Merge Failure When Using Raw Where Query With Scope HOT 2
- Recieving sqlite related errors, but dialect used is postgres
- An In-Class @Scope Decorator HOT 1
- Add method for accessing #transactionCls Sequelize v7
- 使用webpack5 打包 后报错 TypeError: i is not a function
- `unique: true` does not generate same index name and constraint in model and migrations
- Please include src/ in public package if you're going to publish source maps
- Node.js start fails on Linux platform due to invalid ELF header error HOT 1
- Weird Failure When Using this.reload(); "Cannot use offset or limit without a model or order being set" HOT 2
- Raw Queries with multiple Bind Parameters and in wrong order not working properly - (tested on Oracle)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequelize.