提交 41b959c2 编写于 作者: S serge-rider

MySQL: geometry data type fixes

上级 5fefb266
......@@ -68,6 +68,8 @@ class MySQLDialect extends JDBCSQLDialect {
addSQLKeyword(kw);
}
removeSQLKeyword("SOURCE");
addDataTypes(Arrays.asList("GEOMETRY", "POINT"));
}
@Nullable
......
......@@ -1041,4 +1041,14 @@ public final class SQLUtils {
return ArrayUtils.containsIgnoreCase(dialect.getExecuteKeywords(), word);
}
public static String stripColumnTypeModifiers(String type) {
int startPos = type.indexOf("(");
if (startPos != -1) {
int endPos = type.indexOf(")", startPos + 1);
if (endPos != -1) {
return type.substring(0, startPos).trim() + " " + type.substring(endPos + 1).trim();
}
}
return null;
}
}
\ No newline at end of file
......@@ -22,6 +22,9 @@ import org.eclipse.jface.text.contentassist.ContentAssistant;
* SQL Completion proposal
*/
public class SQLContentAssistant extends ContentAssistant {
public SQLContentAssistant() {
super(false); // Sync. Maybe we should make it async
}
@Override
protected AutoAssistListener createAutoAssistListener() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册