Quantcast
Channel: Cadence PCB Design Forum
Viewing all articles
Browse latest Browse all 5525

CIS+MariaDB+recent hotfixes=problem (and solution!)

$
0
0

I run Capture CIS on Win7, querying a MariaDB (MySQL clone) on linux.  Recently, I upgraded the ODBC used to query the database to the most recent version (3.0 MariaDB connector), to upgrade the SSL security of the connection. 

CIS started failing with SQL syntax error messages, complaining about names delimited with double quotes (instead of single quotes or 'accent grave' backwards single quotes), which is what MySQL and MariaDB want.

Yes, I had set the "Table Qualifier=``````  " etc lines in Capture.ini. I had it that way before the change, as well.  Lots of thrashing around to try and fix it, and so I thought I'd share the problems and the (one, maybe two) solutions.

First, "base release" Capture 17.2 works fine with the "Table Qualifier" "Field Qualifier" entries in Capture.ini. However, more recent hotfixes (hotfix 33 and above, maybe earlier ones) FAILED. They ignored the "... Qualifier" entries entirely, always using double quotes to query the database.

It looks, as far as I can tell by dumping strings from near where "Table Qualifier" shows up in the code, that there is a new configuration variable "UseDatabaseProvidedQualifier". Not documented, didn't try it, but using it might be a fix.

A fix that *did* work was adding a SQL string to the ODBC connection setup:

      SET sql_mode='ANSI_QUOTES';

Works for MariaDB, so probably works for MySQL.


Viewing all articles
Browse latest Browse all 5525

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>