no such function: concat

526 views
Skip to first unread message

Peter van Hoof

unread,
Sep 1, 2017, 9:22:48 AM9/1/17
to trac-...@googlegroups.com
I recently upgraded our trac installation from a very old version to
1.2.2 and simultaneously changed the database from mysql -> sqlite. Most
of the site works fine, but when I go to "View Tickets" -> option 3, I
get "OperationalError: no such function: concat"

http://wiki.nublado.org/report/3

Can somebody help me with this? Is it a configuration problem?


Ryan Ollos

unread,
Sep 1, 2017, 9:32:30 AM9/1/17
to Trac Users
SQL has a different dialect for each database type. Limitations of Trac reports are discussed in (1).

TracMigrate (2) helps with converting reports. However it does not appear to replacement of "concat" with SQLite concatentation operator ||. Report {3} doesn't use concat so you've modified the report. You'll need to change the report to use valid SQLite syntax (3).

- Ryan

Peter van Hoof

unread,
Sep 6, 2017, 6:52:32 AM9/6/17
to trac-...@googlegroups.com
> TracMigrate (2) helps with converting reports. However it does not
> appear to replacement of "concat" with SQLite concatentation operator
> ||. Report {3} doesn't use concat so you've modified the report. You'll
> need to change the report to use valid SQLite syntax (3).
>
> - Ryan
>
> (1) https://trac.edgewall.org/wiki/TracReports
> (2) https://trac-hacks.org/wiki/TracMigratePlugin
> (3) https://www.techonthenet.com/sqlite/functions/concatenate.php

Thanks for your explanation! It turned out there was exactly one place
in the database where concat() was used, so I fixed it by hand. Now the
database seems to be working fine. Now let's hope I will not run into
similar problems with other dialect incompatibilities...
Reply all
Reply to author
Forward
0 new messages