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

Update Connection.php

5929dcb03693073dca2fc3cde3cc93382b55c366 authored 10 months ago by walkor <[email protected]>
Merge pull request #22 from woodongwong/patch-1

fix: 当 $this->db 不为 null 时,才调用 rollBackTrans

38f19c293f99f13459f401e95f5997d7f451f819 authored about 1 year ago by walkor <[email protected]>
fix: 当 $this->db 不为 null 时,才调用 rollBackTrans

假如 PDOException->errorInfo[1] 不等于 2006 或 2013 时,需要判断 $this->db 是否为空。

ffa7196c143ca34a0d03d96a18b79c580a421735 authored about 1 year ago by woodong <[email protected]>
Update README.md

29f4928ded4500668c08bc28a16a0afc2419c6ae authored almost 4 years ago by walkor <[email protected]>
Merge pull request #18 from KrasilnikovKB/patch-1

UNION was ignored when building the request

37425f7479cc345205c1e4802442f1e23fab6db0 authored over 4 years ago by walkor <[email protected]>
UNION was ignored when building the request

2812b05bd8b65c495ed14cddece90393aca3b63a authored over 4 years ago by KrasilnikovKB <[email protected]>
Merge pull request #17 from don6105/master

fix bug: reset $this->order_asc

969b264f0e0356816ae953c6acbed4ca67ce6fed authored over 4 years ago by walkor <[email protected]>
fix bug: reset $this->order_asc

The sql will get error with duplicate ASC when execute orderBy() after orderByASC()/orderByDESC().

8b7b12729a720ade256323aece1b01b6dbed4fd8 authored over 4 years ago by don6105 <[email protected]>
Merge pull request #16 from don6105/master

cancel force order suffix

dfe0d39bb9228d8a579118f1b3bb637bb765260b authored over 4 years ago by walkor <[email protected]>
cancel force order suffix

we can use both ASC and DESC in a sql.

example:
Connection->select('ID, Name')
...

13c2d143649a3653f1d4231c48fc6e2ec5def52b authored over 4 years ago by don6105 <[email protected]>
Merge pull request #13 from jichangfeng/jichangfeng

问题:插入表数据时,若字段值为 null,但数据库实际插入的值却为空字符串。

28272aa68f9ea1a482f9bb0cf709d169f772d228 authored over 5 years ago by walkor <[email protected]>
问题:插入表数据时,若字段值为 null,但数据库实际插入的值却为空字符串。

原因:在 $this->bind() 函数里,键值进行字符串拼接导致 null 转化为空字符串。
方案:不要对键值进行字符串拼接,改为使用数组处理即可。

208f80ee56db93dc3c3e1e602cba7d0c665b1579 authored over 5 years ago by 姬常峰 <[email protected]>
connection closed will reconnect 搜hide warning

267134cf33a67cba3e830debe0e577a4eed0ebec authored over 5 years ago by walkor <[email protected]>
Merge pull request #10 from yuandalu/master

Update Connection.php

f88a173bad7c0fd5516ba5b2234b91c09764f95b authored almost 6 years ago by walkor <[email protected]>
Update Connection.php

18c056ea3fdab4c80ad8d1902a9ac45a52e729fc authored almost 6 years ago by dingdejing <[email protected]>
Fix for issue #6

34ac7b3986294197c0fe8142fa450abfebdad779 authored almost 7 years ago by walkor <[email protected]>
for issue #5

a6f3ac568507062849fc30efdf8ad54243f67d91 authored almost 7 years ago by walkor <[email protected]>
#4

2e8e45e76a94b6dcbdef0f0a65c85e31b9ae7b2f authored about 7 years ago by walkor <[email protected]>
Merge pull request #3 from liuxuzzz/master

修复replaceNamesAndAliasIn()方法无法替换'AS'的bug

ffac39353f247a61c89af4b3e812f3bcbb4fd09c authored about 7 years ago by walkor <[email protected]>
修复replaceNamesAndAliasIn()方法无法替换'AS'的bug

strripos查询成功如果返回位置为0,无法进入下面的if判断,
所以应该将if的判断改为 $pos !=== false

da253e9a9959c7943288ba4124f2828b9e755503 authored about 7 years ago by liuxuzzz <[email protected]>
Update Connection.php

fb6a0f3f6553e7a23949d039928ef6fb64b14fc8 authored about 7 years ago by walkor <[email protected]>
Update Connection.php

f61b0e9ebf9f7141268e2cfca59f0589a0c2ae6e authored about 7 years ago by walkor <[email protected]>
Print sql when error occurs

7b417a01959562033b0320e0188401331320478c authored over 7 years ago by walkor <[email protected]>
Update Connection.php

b6cfbb3f41569206cf743f5ba1f72b54ea53dc0a authored over 7 years ago by walkor <[email protected]>
Merge pull request #1 from keppelcao/master

do real reconnect when begin transaction;add return value for several transaction method;

745d62528372e0ca7f1be05f029493b9fce2dc76 authored almost 8 years ago by walkor <[email protected]>
do real reconnect when begin transaction;

add return value for several transaction method;

1563ca134f654f88763efb5751986487cc65c1be authored almost 8 years ago by Jie Cao <[email protected]>
Update README.md

b9073777cd99d48421c1358092f3a08d6dc11d20 authored almost 8 years ago by walkor <[email protected]>
Update composer.json

b44580eda9d359cab06be6f7c45e9eee52cbd555 authored almost 8 years ago by walkor <[email protected]>
Update composer.json

7d95c6577235eb90bc27b660a5665aa8368acdf2 authored almost 8 years ago by walkor <[email protected]>
Create composer.json

20e212d804ea7a9461cc024f53d1c844dd80ecdb authored almost 8 years ago by walkor <[email protected]>
Update README.md

27a9ff7c1151ad90dace48a504a5a24e405b3ace authored almost 8 years ago by walkor <[email protected]>
Update README.md

8c7803f09056414a1e680cb0379f2a3b49f66b40 authored almost 8 years ago by walkor <[email protected]>
Update README.md

1a3033695128770cee30f1db64db17d97119af66 authored almost 8 years ago by walkor <[email protected]>
Update README.md

126cc208303b19af4a61bdea054b9a8ecde0078c authored almost 8 years ago by walkor <[email protected]>
Create Connection.php

94d4c7ed47afada8631f945175c92ac97330484b authored almost 8 years ago by walkor <[email protected]>
Initial commit

71699285658c8641cbbeeb1281426c58a37d7216 authored almost 8 years ago by walkor <[email protected]>