Merge pull request #5148 from dataease/pr@dev@fixextratdata

fix: 识别 mysql BIGINT UNSIGNED
This commit is contained in:
taojinlong 2023-05-06 12:56:51 +08:00 committed by GitHub
commit b99a3f8b5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1414,7 +1414,7 @@ public class ExtractDataService {
" }catch (Exception e){}\n" + " }catch (Exception e){}\n" +
" }"; " }";
private final static String handleMysqlBIGINTUNSIGNED = "if(filed.equalsIgnoreCase(BIGINTUNSIGNEDFIELD)){\n" + private final static String handleMysqlBIGINTUNSIGNED = "if(filed.equalsIgnoreCase(\"BIGINTUNSIGNEDFIELD\")){\n" +
"\t\t\tif(tmp != null && tmp.endsWith(\".0\")){\n" + "\t\t\tif(tmp != null && tmp.endsWith(\".0\")){\n" +
" \ttry {\n" + " \ttry {\n" +
" Long.valueOf(tmp.substring(0, tmp.length()-2));\n" + " Long.valueOf(tmp.substring(0, tmp.length()-2));\n" +