Skip to content

Capture and prettify <STORE> error when result set is too big #4

Closed
@bdeboe

Description

@bdeboe

I ran into a error when executing a SELECT * from a somewhat bigger table. While the regular table browse function uses some form of paging to limit the result set to be returned, it's probably not appropriate to fiddle with user-supplied queries in the same way, even if it's a blunt a SELECT *, so let's maybe detect if the returned error is a one as in the snippet below and return something nicer such as "Query result set is too big. Please use a TOP clause or change the statement to retrieve fewer rows"

ERROR #5002: ObjectScript error: <STORE>^%Api.Atelier.v1.1 [^%Api.Atelier.v1.1:USER]

if (data.result.status && data.result.status !== "") {

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions