weih
bae684b363
fix(clause): when the value of clause.Eq is an empty array, the SQL should be IN (NULL) ( #6503 )
2023-08-10 13:34:33 +08:00
Clark McCauley
540fb49bcb
Fixed #5355 - Named variables don't work when followed by Windows CRLF line endings ( #5356 )
...
* Fixed #5355 .
* Fixed unit test to test both CRLF and CR line endings
2022-05-22 15:16:01 +08:00
River
851fea0221
fix: QuoteTo not fully support raw mode ( #4735 )
...
* fix: QuoteTo not fully support raw mode
* fix: table alias without AS
* test: clause.Column/Table quote test
* fix: revert table alias quote
2021-09-29 14:02:35 +08:00
Jim
5202529ea1
fix (clause/expression): Allow sql stmt terminator ( #4693 )
...
Allow the sql stmt terminator ";" at the end of a named parameter.
Example: select * from table_name where name == @name;
2021-09-20 21:40:48 +08:00
River
25f561a742
feat: QuoteTo accept clause.Expr ( #4621 )
...
* feat: QuoteTo accept clause.Expr
* test: update Expr build test
2021-08-19 14:33:18 +08:00
Jinzhu
76cd73cb82
Fix wipes out MySQL global variables from the query, close #4515
2021-07-13 18:48:43 +08:00
Jinzhu
9abac96546
Fix Eq, Neq support slice of data
2021-05-31 17:21:27 +08:00
Jinzhu
14e96080d8
Eq, Neq support slice of data
2021-05-31 15:25:38 +08:00
Jinzhu
6c0ee2700a
Allow to use Valuer with Eq expression, #3899
2020-12-30 10:42:13 +08:00
vellotis
51b5208599
Fix building of `clause.Eq` and `clause.Neq` expressions that fail to handle `(*T)(nil)` use cases correctly ( #3848 )
...
* Update tests to cover building `clause.Eq` and `clause.Neq` when value could be a nil pointer of a primitive
* Fix use cases for `clause.Eq` and `clause.Neq` when value is nil pointer of a primitive type
2020-12-11 14:07:23 +08:00
Jinzhu
08ecef8e0b
Fix NamedArguments with nested struct, close #3596
2020-10-13 15:32:29 +08:00
Jinzhu
c9165fe3ca
Don't panic when using unmatched vars in query, close #3488
2020-09-18 21:42:27 +08:00
Jinzhu
d002c70cf6
Support named argument for struct
2020-09-17 21:52:41 +08:00
Jinzhu
bba569af2b
Add NamedArg support
2020-07-10 12:28:24 +08:00
Jinzhu
8bb05a5a69
Refactor tests files
2020-06-02 10:50:38 +08:00
Jinzhu
e986371a42
Rename package name
2020-06-02 09:18:01 +08:00
Jinzhu
9fcc546a69
Fix tests
2020-02-26 19:06:42 +08:00
Jinzhu
e2a360b9fa
Add Before/After callbacks
2020-02-23 21:22:35 +08:00
Jinzhu
6d58b62fd4
Add sqlite migration tests
2020-02-22 20:57:29 +08:00