#12182 Fix name trim for global temporary tables

上级 21fd13b3
......@@ -309,6 +309,10 @@ public class SQLServerStructureAssistant implements DBSStructureAssistant<SQLSer
@NotNull
private static String extractTempTableName(@NotNull String originalName) {
if (originalName.startsWith("##")) {
// Global temporary tables does not contain padding in their names. Use as-is
return originalName;
}
final String name = originalName.substring(0, 116);
for (int i = name.length() - 1; i >= 0; i--) {
if (name.charAt(i) != '_') {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册