Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/walkor/mysql
Long-living MySQL connection for daemon.
https://github.com/walkor/mysql
5929dcb03693073dca2fc3cde3cc93382b55c366 authored 10 months ago by walkor <[email protected]>
fix: 当 $this->db 不为 null 时,才调用 rollBackTrans
38f19c293f99f13459f401e95f5997d7f451f819 authored about 1 year ago by walkor <[email protected]>假如 PDOException->errorInfo[1] 不等于 2006 或 2013 时,需要判断 $this->db 是否为空。
ffa7196c143ca34a0d03d96a18b79c580a421735 authored about 1 year ago by woodong <[email protected]>29f4928ded4500668c08bc28a16a0afc2419c6ae authored almost 4 years ago by walkor <[email protected]>
UNION was ignored when building the request
37425f7479cc345205c1e4802442f1e23fab6db0 authored over 4 years ago by walkor <[email protected]>2812b05bd8b65c495ed14cddece90393aca3b63a authored over 4 years ago by KrasilnikovKB <[email protected]>
fix bug: reset $this->order_asc
969b264f0e0356816ae953c6acbed4ca67ce6fed authored over 4 years ago by walkor <[email protected]>The sql will get error with duplicate ASC when execute orderBy() after orderByASC()/orderByDESC().
8b7b12729a720ade256323aece1b01b6dbed4fd8 authored over 4 years ago by don6105 <[email protected]>cancel force order suffix
dfe0d39bb9228d8a579118f1b3bb637bb765260b authored over 4 years ago by walkor <[email protected]>we can use both ASC and DESC in a sql.
example:
Connection->select('ID, Name')
...
问题:插入表数据时,若字段值为 null,但数据库实际插入的值却为空字符串。
28272aa68f9ea1a482f9bb0cf709d169f772d228 authored over 5 years ago by walkor <[email protected]>原因:在 $this->bind() 函数里,键值进行字符串拼接导致 null 转化为空字符串。
方案:不要对键值进行字符串拼接,改为使用数组处理即可。
267134cf33a67cba3e830debe0e577a4eed0ebec authored over 5 years ago by walkor <[email protected]>
Update Connection.php
f88a173bad7c0fd5516ba5b2234b91c09764f95b authored almost 6 years ago by walkor <[email protected]>18c056ea3fdab4c80ad8d1902a9ac45a52e729fc authored almost 6 years ago by dingdejing <[email protected]>
34ac7b3986294197c0fe8142fa450abfebdad779 authored almost 7 years ago by walkor <[email protected]>
a6f3ac568507062849fc30efdf8ad54243f67d91 authored almost 7 years ago by walkor <[email protected]>
2e8e45e76a94b6dcbdef0f0a65c85e31b9ae7b2f authored about 7 years ago by walkor <[email protected]>
修复replaceNamesAndAliasIn()方法无法替换'AS'的bug
ffac39353f247a61c89af4b3e812f3bcbb4fd09c authored about 7 years ago by walkor <[email protected]>
strripos查询成功如果返回位置为0,无法进入下面的if判断,
所以应该将if的判断改为 $pos !=== false
fb6a0f3f6553e7a23949d039928ef6fb64b14fc8 authored about 7 years ago by walkor <[email protected]>
f61b0e9ebf9f7141268e2cfca59f0589a0c2ae6e authored about 7 years ago by walkor <[email protected]>
7b417a01959562033b0320e0188401331320478c authored over 7 years ago by walkor <[email protected]>
b6cfbb3f41569206cf743f5ba1f72b54ea53dc0a authored over 7 years ago by walkor <[email protected]>
do real reconnect when begin transaction;add return value for several transaction method;
745d62528372e0ca7f1be05f029493b9fce2dc76 authored almost 8 years ago by walkor <[email protected]>add return value for several transaction method;
1563ca134f654f88763efb5751986487cc65c1be authored almost 8 years ago by Jie Cao <[email protected]>b9073777cd99d48421c1358092f3a08d6dc11d20 authored almost 8 years ago by walkor <[email protected]>
b44580eda9d359cab06be6f7c45e9eee52cbd555 authored almost 8 years ago by walkor <[email protected]>
7d95c6577235eb90bc27b660a5665aa8368acdf2 authored almost 8 years ago by walkor <[email protected]>
20e212d804ea7a9461cc024f53d1c844dd80ecdb authored almost 8 years ago by walkor <[email protected]>
27a9ff7c1151ad90dace48a504a5a24e405b3ace authored almost 8 years ago by walkor <[email protected]>
8c7803f09056414a1e680cb0379f2a3b49f66b40 authored almost 8 years ago by walkor <[email protected]>
1a3033695128770cee30f1db64db17d97119af66 authored almost 8 years ago by walkor <[email protected]>
126cc208303b19af4a61bdea054b9a8ecde0078c authored almost 8 years ago by walkor <[email protected]>
94d4c7ed47afada8631f945175c92ac97330484b authored almost 8 years ago by walkor <[email protected]>
71699285658c8641cbbeeb1281426c58a37d7216 authored almost 8 years ago by walkor <[email protected]>