Improve error message for queryInsertAt() using value as struct

Description

queryInsertAt() function using an array for value if an array length not equal to length than columns count throws an error like there is not the same amount of records in the array [ 2 ] as there are columns in the query [ 3 ]

Using query for value with mismatching query object columns throws an error like column names [ col1, col2, col3 ] of the first query does not match the column names [ col1, col2 ] of of the second query

But while using struct as value, if struct keys mismatching with query columns means It throws the error which above mentioned for the query. It would be nice to mention the struct in the error message for struct value.

Activity

Show:

Zac Spitzer 2 December 2021 at 11:32

Once that PR is updated and merged with my review comments, I’m going to revisit all the exception language in that file

Pothys - MitrahSoft 1 December 2021 at 11:24

I improved the error message for queryInsertAt() using value as struct

Pull Request: https://github.com/lucee/Lucee/pull/1481

Fixed

Details

Assignee

Reporter

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 29 November 2021 at 13:56
Updated 27 April 2022 at 16:51
Resolved 6 December 2021 at 13:28

Flag notifications