Create Macro %FullPath_CStyle% to avoid backslash ODBC prob.

Need new test, action, option? Post request here.
Post Reply
Bob

Create Macro %FullPath_CStyle% to avoid backslash ODBC prob.

Post by Bob »

I am trying to log full path names to a mysql database. Backslashes need to be doubled as in \\Root\\Myfolder. This feature would be similar to %Reply_CStyle% macro.

Other workaround suggestions would be appreciated!

Thanks
Bob Roswell
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

I know that some SQL servers require double backslash but I am not sure about SQL 92 standard. Trying to find quote... May be you have quote from the manual right on hand?
If \\ is not required by SQL 92, it should be implemented as option.

Regards
Alex
bob

DOn't know about the standard, but can document

Post by bob »

that most systems in real life treat the \ as an escape character.
broswell
Posts: 7
Joined: Wed May 04, 2005 7:47 pm

Found a fix for MYSQL

Post by broswell »

# SERVER SECTION

# ----------------------------------------------------------------------

#

# The following options will be read by the MySQL Server. Make sure that

# you have installed the server correctly (see above) so it reads this

# file.

#

[mysqld]

sql-mode=NO_BACKSLASH_ESCAPE
Post Reply