Closed Bug 577557 Opened 15 years ago Closed 15 years ago

PostgreSQL cannot test injection with integer or date columns, for xt/search.t

Categories

(Bugzilla :: Testing Suite, defect)

3.7.2
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.2

People

(Reporter: mkanat, Assigned: mkanat)

References

Details

Attachments

(1 file)

If you try to run the injection tests in xt/search.t on PostgreSQL, the integer fields throw errors like: ERROR: invalid input syntax for integer: ";SEMICOLON_TEST" Unfortunately, under PostgreSQL, no other statements can run within a transaction once one has thrown an error. So this prevents the test from continuing effectively.
Same is true for the TIMESTAMP (datetime) fields.
Summary: PostgreSQL cannot test injection with integer columns, for xt/search.t → PostgreSQL cannot test injection with integer or date columns, for xt/search.t
Attached patch v1Splinter Review
Okay, this fixes it for all the fields that I can test right now (but I think that's all the fields).
Assignee: testing → mkanat
Status: NEW → ASSIGNED
Attachment #456498 - Flags: review+
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified xt/lib/Bugzilla/Test/Search/Constants.pm modified xt/lib/Bugzilla/Test/Search/InjectionTest.pm Committed revision 7308.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: approval+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: