Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Crash when inserting constant in query | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base | Reporter: | r4zoli <r4zoli> | ||||||
Component: | code | Assignee: | AOO issues mailing list <issues> | ||||||
Status: | CONFIRMED --- | QA Contact: | |||||||
Severity: | Normal | ||||||||
Priority: | P3 | CC: | damjan, issues | ||||||
Version: | 3.4.0 Beta (OOo) | Keywords: | crash, regression | ||||||
Target Milestone: | --- | ||||||||
Hardware: | PC | ||||||||
OS: | All | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | 4.2.0-dev | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
r4zoli
2011-06-19 14:15:07 UTC
change platform. In OOo 3.2.1: In SQL Mode with SQL Parser ON : SELECT "ID", "MyText", 'Test', 'Test1', 'Test2' FROM "Table1" gives : ID MyText Expression 1 Expression 1 Expression 1 0 zero Test Test Test With SQL Parser OFF (i.e. direct SQL code execution) : SELECT "ID", "MyText", 'Test', 'Test1', 'Test2' FROM "Table1" gives : ID MyText (empty) 1 2 0 zero Test Test1 Test2 In other words, it appears that it is the OOo parser that can not handle the constants. Created attachment 76994 [details]
example database
In AOOo 3.4 debug version, when added 'test' to Query1 in edit mode, and run query I get this output: --------------------------- Debug Output --------------------------- Error: Invalid Position From File ../../inc\connectivity/sqlnode.hxx at Line 463 Abort ? (Yes=abort / No=ignore / Cancel=core dump) --------------------------- Igen Nem Mégse --------------------------- The AOOo crashed. getting rid of value "enhancement" for field "severity". For enhancement the field "issue type" shall be used. Created attachment 84878 [details]
StackTrace.txt
Confirming. Stack trace attached.
The failed assert is on: OSL_ENSURE(nPos < m_aChildren.size(), "Invalid Position"); in main/connectivity/inc/connectivity/sqlnode.hxx. A regression test would help, but this regression happened in the old OO.o. |