To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=87945
                 Issue #|87945
                 Summary|Requests defined in previous versions no more working
               Component|Database access
                 Version|OOo 2.4.0
                Platform|Palm PDA
                     URL|
              OS/Version|Windows XP
                  Status|UNCONFIRMED
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P2
            Subcomponent|none
             Assigned to|dbaneedsconfirm
             Reported by|claudinedec





------- Additional comments from [EMAIL PROTECTED] Sun Apr  6 07:56:46 +0000 
2008 -------
I deployed a lot of complex requests in one of the 2.X version with no problem.
But wanting to update them in spl mode I got issue:
"la requête ne créée pas de résultat et ne peut donc pas faire partie d'une 
autre requête"
If I double-click on the request in request browser, I get the right result, 
all the lines are listed but if I create a report, ( Sun Report Builder) it is 
empty, no result are returned.
I simplifyed a request and found a pattern generating the issue:

SELECT "T_parrainage".*,
"Tp_etatParrainage"."libelle"  AS "etatParrainageLib",
"T_eleve"."ID" AS "IDEleve"

 FROM "T_parrainage" "T_parrainage"
  JOIN "T_eleve" "T_eleve"
                  ON  "T_parrainage"."filleul" = "T_eleve"."ID" 

  
 LEFT OUTER JOIN  "Tp_etatParrainage" "Tp_etatParrainage"
                 ON "T_parrainage"."etat" = "Tp_etatParrainage"."code"
WHERE (("T_parrainage"."dateFin" >= NOW()) AND ("T_parrainage"."etat"=0) )

If I create such a request in SQL mode I get exception:
Statut SQL: HY000
Code d'erreur: 1000

syntax error, unexpected $end, expecting BETWEEN or IN or SQL_TOKEN_LIKE

If I add "INNER" before the first JOIN it works

SELECT "T_parrainage".*,
"Tp_etatParrainage"."libelle"  AS "etatParrainageLib",
"T_eleve"."ID" AS "IDEleve"

 FROM "T_parrainage" "T_parrainage"
 INNER JOIN "T_eleve" "T_eleve"
                  ON  "T_parrainage"."filleul" = "T_eleve"."ID" 

  
 LEFT OUTER JOIN  "Tp_etatParrainage" "Tp_etatParrainage"
                 ON "T_parrainage"."etat" = "Tp_etatParrainage"."code"
WHERE (("T_parrainage"."dateFin" >= NOW()) AND ("T_parrainage"."etat"=0) )

INNER is the default value and should not be mandatory, I was able to create 
such request with one of the previous 2.X version.
If I update old requests source, I get other issues as "code" doesn't exist
I had to delet some old requests and recreate them.
I can provided a testcase for "INNER", for other exceptions when updating SQL 
source I can't as the database contains personal data.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to