Skip to content

Commit

Permalink
fix: use dtxp instead of clen
Browse files Browse the repository at this point in the history
  • Loading branch information
rohittp0 committed May 10, 2024
1 parent d704fcb commit ee943e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nocodb/src/db/BaseModelSqlv2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4521,9 +4521,9 @@ class BaseModelSqlv2 {
column: Column<any>,
data: Record<string, any>,
) {
if (column.clen < data[column.title]?.length) {
if (column.dtxp && column.dtxp < data[column.title]?.length) {
NcError.badRequest(
`Column "${column.title}" value exceeds the maximum length of ${column.clen}`,
`Column "${column.title}" value exceeds the maximum length of ${column.dtxp}`,
);
}
}
Expand Down

1 comment on commit ee943e0

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR changes have been deployed. Please run the following command to verify:

docker run -d -p 8888:8080 nocodb/nocodb-timely:0.205.0-pr-8437-20240510-0827

Please sign in to comment.