Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pdo驱动类getFields方法中,对于字段名为什么要用strtolower? #3

Open
LeoYoung opened this issue Sep 18, 2012 · 0 comments

Comments

@LeoYoung
Copy link

因为最近项目需要使用SQLite库,所以我做了一版基于SQLite的程序,在使用中发现,部分读库操作会产生无法获取获取数据的情况,仔细排查发现是在Pdo类的getFields方法中,遍历结果时,使用了

$name= strtolower(isset($val['field'])?$val['field']:$val['name']);

这一句,导致所有字段名被改写为小写,我不大清楚此处予以何为?
删除strtolower后,基本很多操作就正常了。请问有什么隐患之类的么?

liu21st pushed a commit that referenced this issue Oct 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant