Revert auto-quoting in Web UI

This commit is contained in:
Ben Johnson 2022-03-03 12:35:54 -07:00
parent b7469acb04
commit d9ad819fe9

View file

@ -119,19 +119,7 @@ export const QueryContainer: FC<{}> = () => {
setLoading(false);
}
} else {
let queryArr = query.split(' ');
queryArr.forEach((word, idx) => {
if (word.includes('-')) {
let wordArr = word.split('.');
wordArr.forEach((section, idx) => {
if (section.includes('-') && !word.includes('`')) {
wordArr[idx] = `\`${wordArr[idx]}\``;
}
});
queryArr[idx] = wordArr.join('.');
}
});
querySQL(queryArr.join(' '), handleQueryMessages, handleQueryEnd);
querySQL(query, handleQueryMessages, handleQueryEnd);
}
}
};