This has cost me well over a day of work, and it's a VERY serious issue because I've been trying to resolve a string parsing problem, and couldn't figure out why nothing was working the way it should. It appears that dbForge is either manipulating strings or misrepresenting them in the data fields, or both.
Take the below stored procedure for example. Note the ONLY differences between the two sets of string is a single CRLF for formatting (readability).
Code: Select all
PROCEDURE test_json()
BEGIN
DECLARE var_text text;
SET var_text = '{"jobTitle":"Systems Manager \\ DevOps"}';
SELECT var_text;
SET var_text = '{"jobTitle":
"Systems Manager \\ DevOps"}';
SELECT var_text;
SET var_text = 'This is a "string" for fun';
SELECT var_text;
SET var_text = 'This is
a "string" for fun';
SELECT var_text;
END
Code: Select all
DBFORGE:
"This is
a ""string"" for fun"
"{""jobTitle"":
""Systems Manager \ DevOps""}"
This is a "string" for fun
"This is
a ""string"" for fun"
MySQL WORKBENCH:
'{\"jobTitle\":\"Systems Manager \\ DevOps\"}'
'{\"jobTitle\":\r\n \"Systems Manager \\ DevOps\"}'
'This is a \"string\" for fun'
'This is \r\n a \"string\" for fun'
Because of this issue, I cannot resolve this parsing problem in dbForge; I must switch back to MySQL Workbench.
This is a serious problem.