|
Alexander Peshkov made changes - 05/Sep/18 12:30 PM
Alexander Peshkov made changes - 23/Sep/18 05:07 PM
What about database with exotic name, e.g. {e25}.fdb ? (i.e. curvy brackets are part of this name)
In 2.5 following pattern will work for such names: <database (%[\\/](e\{[[:DIGIT:]]{2}\}).fdb)> ... How should this pattern look in 3.0 ? No, it will not work for {e25}.fdb, only for e{25}.fdb. And for HEAD that pattern is:
database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb) ... Will be good to have it noted at fbtrace.conf
> And for HEAD that pattern is:
> database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb) Unfortunately, it does not work (checked on WI-T4.0.0.1224 F, build of 25.09.2018). Test is trivial: i just copy string that you've provided to trace config: === database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb) { enabled = true time_threshold = 0 log_statement_finish = true } === -- then launching trace. And immediately get error: C:\MIX\firebird\fb30\fbsvcmgr.exe localhost:service_mgr action_trace_start trc_cfg C:\MIX\firebird\QA\fbt-repo\tmp\tmp_trace_5907.cfg Trace session ID 8 started Error creating trace session for database "": Passed text: illegal line <database = (%[\\/](e\{{[[:DIGIT:]]{{2}}\}}).fdb)> Duplicating of back slashes: database = (%[\\/](e\\{{[[:DIGIT:]]{{2}}\\}}).fdb) -- also does not help ,same error. BTW, quote from doc ( https://firebirdsql.org/refdocs/langrefupd25-similar-to.html ):
=== Building regular expressions Characters Within regular expressions, most characters represent themselves. The only exceptions are the special characters below: [ ] ( ) | ^ - + * % _ ? { ...and the escape character, if it is defined. === Where is CLOSING curvy bracket, "}", in this list ? > Unfortunately, it does not work (checked on WI-T4.0.0.1224 F, build of 25.09.2018).
> Test is trivial: i just copy Sorry for noise... It DOES work on WI-T4.0.0.1224, i did mistake related to multiple instances of FB installed on my machine.
Pavel Zotov made changes - 26/Sep/18 07:14 AM
Alexander Peshkov made changes - 05/Oct/18 02:24 PM
|
database = (%[\\/](e[[:DIGIT:]]{{2}}).fdb)