Changes between Initial Version and Version 2 of Ticket #12837
- Timestamp:
- Aug 3, 2016, 12:45:08 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #12837 – Description
initial v2 1 I'm attempting to use dynamic variables in one of my reports however when I submit the report the variable is converted into %s1 I'm attempting to use dynamic variables in one of my reports however when I submit the report the variable is converted into `%s` 2 2 3 3 Here's the SQL query i'm attempting to run on the report: 4 4 {{{#!sql 5 5 Select * from openquery([redacted_server], ' 6 6 … … 21 21 FROM [teststand].[dbo].[STEP_RESULT] 22 22 WHERE [UUT_RESULT] = $UUT_ID') 23 23 }}} 24 24 When attempting to run I'm given the following error: 25 {{{ 25 26 ProgrammingError: ('42000', "[42000] [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Incorrect syntax near '+'. (102) (SQLExecDirectW); [42000] [Microsoft][ODBC Driver 13 for SQL Server][SQL Server]Statement(s) could not be prepared. (8180)") 26 27 }}} 27 28 Which refers to the following: 29 {{{ 28 30 WHERE [UUT_RESULT] = '+%s+'') 29 30 Even if I make a new report and just put $VALUE, it'll come out as %s regardless of what the URL variables are set to. The default dynamic variable of $USER also gets converted to %s.31 }}} 32 Even if I make a new report and just put `$VALUE`, it'll come out as `%s` regardless of what the URL variables are set to. The default dynamic variable of `$USER` also gets converted to `%s`. 31 33 32 34 I'm not too sure how the internals of MsSqlBackendPlugin works but it looks like it's incorrectly being parsed however any insight as to how I can fix this would be very much appreciated.