Giter Club home page Giter Club logo

Comments (15)

zhuxiujia avatar zhuxiujia commented on June 30, 2024

SELECT

FROM sys_role_info_t

and role_name like #{name}
name==""时,生成的sql 为
select
FROM sys_role_info_t where

哪个版本,具体代码贴一下

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

v6.2.3

from gomybatis.

zhuxiujia avatar zhuxiujia commented on June 30, 2024

v6.2.3

用最新版本再试试

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

我用最新版本6.3.2一样存在这个bug


and state=#{state}


and title like #{name}


当所有条件都不满足时,不应该生成一个where

java:
where标签的作用:如果该标签包含的元素中有返回值,就插入一个where;如果where后面的字符串是以and或or开头的,就将它们剔除。

from gomybatis.

zhuxiujia avatar zhuxiujia commented on June 30, 2024

我用最新版本6.3.2一样存在这个bug

and state=#{state}

and title like #{name}

当所有条件都不满足时,不应该生成一个where

java:
where标签的作用:如果该标签包含的元素中有返回值,就插入一个where;如果where后面的字符串是以and或or开头的,就将它们剔除。

v6.3.3版本修复了这个问题,当where标签body没有条件满足(也就是包含的sql是空字符串)的时候,where关键字 不写入

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

新bug又来了

error == invalid character 'f' in exponent of numeric literal

兄弟,你要多测试呀,不然我们会进坑的

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

你应该修改到什么地方了,原来的程序都有问题了
error == invalid character 'w' after object key:value pair

from gomybatis.

zhuxiujia avatar zhuxiujia commented on June 30, 2024

你应该修改到什么地方了,原来的程序都有问题了
error == invalid character 'w' after object key:value pair

json解码有bug,已经修复修复在了v6.3.5

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

6.3.5 还是存在bug
error == invalid character 'f' in exponent of numeric literal

大兄弟,你测试了么?

from gomybatis.

zhuxiujia avatar zhuxiujia commented on June 30, 2024

6.3.5 还是存在bug
error == invalid character 'f' in exponent of numeric literal

大兄弟,你测试了么?

测试用例跑完才发布的,你这个错误应该检查一下,你自己的代码
很明显,这个‘f’是你自己写的吧

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

from gomybatis.

zhuxiujia avatar zhuxiujia commented on June 30, 2024

你再检查一下程序,这个应该还是版本有bug引起的,我换回旧版本就没这个问题

---Original--- From: "zxj"<[email protected]> Date: Mon, Jun 29, 2020 20:58 PM To: "zhuxiujia/GoMybatis"<[email protected]>; Cc: "wzhsh90"<[email protected]>;"Author"<[email protected]>; Subject: Re: [zhuxiujia/GoMybatis] <where> bug (#58) 6.3.5 还是存在bug error == invalid character 'f' in exponent of numeric literal 大兄弟,你测试了么? 测试用例跑完才发布的,你这个错误应该检查一下,代码 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

把报错位置的代码贴上来哈,example包里面的代码目前一切正常

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

1xxx

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

11:44:54 app | 2020/06/30 11:44:54 [GoMybatis] [90152de2-e746-42d6-9257-78702eec8e7c] Query ==> select count(*)
from notice_t
11:44:54 app | 2020/06/30 11:44:54 [GoMybatis] [90152de2-e746-42d6-9257-78702eec8e7c] Args ==> []
2020/06/30 11:44:54 [GoMybatis] [90152de2-e746-42d6-9257-78702eec8e7c] Close session
2020/06/30 11:44:54 [GoMybatis] [90152de2-e746-42d6-9257-78702eec8e7c] ReturnRows <== 1
2020/06/30 11:44:54 [GoMybatis] [85bdf2ea-1753-4607-8421-de94aec6a2c6] Query ==> select id,title,content,create_time ,state ,show
_seq ,browser_cnt,end_time from notice_t order by create_time desc limit ? , ?
2020/06/30 11:44:54 [GoMybatis] [85bdf2ea-1753-4607-8421-de94aec6a2c6] Args ==> [0,20]
2020/06/30 11:44:54 [GoMybatis] [85bdf2ea-1753-4607-8421-de94aec6a2c6] ReturnRows <== 0
2020/06/30 11:44:54 [GoMybatis] [85bdf2ea-1753-4607-8421-de94aec6a2c6] error == invalid character 'f' in exponent of numeric liter
al
2020/06/30 11:44:54 [GoMybatis] [85bdf2ea-1753-4607-8421-de94aec6a2c6] Close session

from gomybatis.

wzhsh90 avatar wzhsh90 commented on June 30, 2024

15215109339 我微信,加微信处理吧

from gomybatis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.