MySQL Workbench 6.2:缺少右括号

时间:2018-09-26 08:55:16

标签: mysql geospatial

我有以下查询显示错误:

错误:缺少“右括号”。

SELECT geomfromtext('polygon(('CONCAT(GROUP_CONCAT(a.latitude ,' ', a.longitude),'11.12345 66.65432')'))')
FROM  GeometryTable a

这是最终查询:

SELECT a.* FROM GeometryTable a 
WHERE 
mbrintersects
(
    geomfromtext('polygon(('CONCAT(GROUP_CONCAT(a.latitude ,' ', a.longitude),'11.12345 66.65432')'))'),
    geomfromtext('polygon((11.59679 79.50852,12.89778 76.51863,12.89096 76.5176,11.59679 79.50852))')
);

1 个答案:

答案 0 :(得分:0)

您可以尝试以下方法:

app.UseCookieAuthentication(new CookieAuthenticationOptions
        {
            AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
            LoginPath = new PathString("/Account/Login"),
            Provider = new CookieAuthenticationProvider
            {
                // Enables the application to validate the security stamp when the user logs in.
                // This is a security feature which is used when you change a password or add an external login to your account.  
                OnValidateIdentity = SecurityStampValidator.OnValidateIdentity<ApplicationUserManager, ApplicationUser>(
                    validateInterval: TimeSpan.FromMinutes(30),
                    regenerateIdentity: (manager, user) => user.GenerateUserIdentityAsync(manager))
            }
        });