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

CIS Database Issues with MySQL

$
0
0

Today I have worked through a number of issues with using MySQL for the CIS Database.

I prefer MySQL over using a file based database in order to allow access for multiple users from multiple PCs.

In any case, the issue with the Part Number not being TEXT, STRING or CHARACTER was resolved by using the ANSI version of the ODBC driver.

Additionally, if you have spaces in your field names, you will get errors, which may be fixed by setting the delimeters in the capture.ini:

 [Part Management]

Table Qualifier=`

Field Qualifier=`

A helpful hint to find issues is to set the debug output for database commands:

This Tcl command sets an option to display the SQL query in the session log window, that is created by CIS.

SetOptionString DisplayCisQuery TRUE 

Now that I have the mappings all working I have one final issue.

Basically, the \ in the Part_Type is causing trouble. OrCAD is not escaping it properly - for 'Resistor\0402':

 ....  FROM `parts` WHERE `PartType` = 'Resistor\\\0402' 

should be

 ... FROM `parts` WHERE `PartType` = 'Resistor\\0402' 

Any ideas on how to fix this last issue? I like having multiple folder levels, but this may force me to have just one level of part types...

Cheers! Dave. 


Viewing all articles
Browse latest Browse all 5525