Ticket #4399 (closed defect: worksforme)

Opened 1 year ago

Last modified 1 month ago

README.txt has wrong example

Reported by: anonymous Assigned to: rjollos
Priority: high Component: WikiTableMacro
Severity: normal Keywords:
Cc: elecnix Trac Release: 0.11

Description

If I follow the README.txt as well as the home page for this plugin, I would use it like:

    {{{
    #!SQLTable
        SELECT count(id) as 'Number of Tickets'
        FROM ticket
    }}}

However, it does not work on Trac 0.11.1. I had to use:

[[SQLTable(SELECT count(id) as 'Number of Tickets' FROM ticket)]]

Please update the documentation.

Attachments

Change History

01/07/09 11:07:07 changed by elecnix

  • cc set to elecnix.

02/07/10 04:24:33 changed by rjollos

  • owner changed from optilude to rjollos.

Changing ticket owner as maintainership will soon be transferred.

02/09/10 08:32:38 changed by rjollos

  • status changed from new to closed.
  • resolution set to worksforme.

I'm using the following in 0.11.4

{{{
#!SQLTable
SELECT name FROM enum WHERE type = 'priority'
}}}

I tried your example as well and it worked fine. I'm not sure why it wouldn't work for you. If you wish to follow-up we can discussed further.

The only thing I can say is that you can't indent the following, like shown above (though I'm guessing that is just how you added to this ticket):

{{{
#!SQLTable
    SELECT count(id) as 'Number of Tickets'
    FROM ticket
}}}

Add/Change #4399 (README.txt has wrong example)




Change Properties
Action