倒反天罡是什么意思| 白狗子是什么意思| 吃什么可以祛斑| 词牌名什么意思| 1月1日什么星座| 广义是什么意思| 上焦有火吃什么中成药| 记忆力减退是什么原因造成的| 为什么精液是黄色的| 砼为什么念hun| 友女是什么意思| 鱼为什么睁着眼睛睡觉| 卵巢炎症有什么症状| 婴儿眉毛上黄痂是什么| 10月19号什么星座| 阴茎出血是什么原因| 双肾实质回声增强是什么意思| 资生堂适合什么年龄段| 与生俱来是什么意思| 网友见面叫什么| 四川的耗儿鱼是什么鱼| 屁股长痘是什么原因| 关羽的刀叫什么名字| 看破不说破什么意思| 天空为什么会下雨| 胃酸吃什么| 尿酸为什么会高| 水瓶后面是什么星座| kda是什么单位| 逼格什么意思| 为什么肝最怕吃花生| 孕妇为什么不能吃西瓜| 有容乃大是什么意思| 牛蛋是什么| 唇炎看什么科最好| 梦呓是什么意思| 96年五行属什么| 女人为什么会叫| 什么水果泡酒最好喝| 正财代表什么| 18号来月经什么时候是排卵期| 锦鲤可以和什么鱼混养| 易烊千玺原名叫什么| 兔子五行属什么| 什么东西比乌鸦更讨厌| 人的本性是什么| 左侧卵巢囊肿是什么原因引起的| louis是什么意思| 解解乏是什么意思| 默然是什么意思| 怀孕后为什么会生化| 男性hpv挂什么科| 6.13是什么星座| 羊肉炖什么| 人中长代表什么| 吃什么水果解酒| 梦见在水里游泳是什么意思| 医院建档是什么意思| 体检挂什么科| 18k金和24k金有什么区别| 小猫打什么疫苗| 尿酸高有什么危害| 晚的反义词是什么| 胃功能三项检查是什么| 吃氨糖有什么好处和坏处| 慢性前列腺炎吃什么药| 什么症状要查心肌酶| 结婚前一天晚上的宴会叫什么| 回归是什么意思| 东北冻梨是什么梨| 为什么叫川普| 医保定点医院是什么意思| 江西有什么好玩的景点| 痛风病人吃什么菜| 其余是什么意思| 脑瘤有什么症状| 处女座跟什么星座最配| 副局级干部是什么级别| 都有什么快递| 2003年属羊的是什么命| 中之人什么意思| 人为什么会做梦| 手肿是什么病的前兆| 川芎有什么功效与作用| 县长什么级别| 第一次见面送女生什么花| 怀孕了尿液是什么颜色| 孕妇便秘吃什么| 脾是干什么用的| 办理住院手续需要带什么证件| 前列腺钙化灶什么意思| 鼻子和嘴巴连接的地方叫什么| tao是什么意思| 65年属什么生肖| 湿气到底是什么| 老感冒是什么原因| 蒸馏水是什么水| lgm是什么意思| 梦见挖坑什么意思| 康乃馨的花语是什么| 黑曜石属于五行属什么| 眼皮红肿是什么原因| 海东青是什么| 胃火旺盛吃什么药| 牙掉了是什么预兆| 夜不能寐是什么意思| 眼睑炎用什么药| 柴鸡蛋是什么| 西夏是现在的什么地方| 元春省亲为什么在晚上| 抗核抗体是什么| 成龙姓什么| 急火攻心是什么生肖| 免疫力低吃什么补| 宫颈糜烂吃什么药| 三个土什么字| 比五行属什么| 智能眼镜有什么功能| 咳嗽绿痰是什么原因| 减肥期间可以吃什么零食| 杨枝甘露是什么| 老花镜什么品牌好| 嚭是什么意思| 中性粒细胞低是什么原因| 缺黄体酮会有什么症状| 雪芽是什么茶| 老是放屁吃什么药| 花胶适合什么人吃| 什么化妆品好用| 便秘喝什么药| 晚上八点半是什么时辰| 什么药可以减肥瘦身| 脖子为什么会痒| 头疼头晕是什么原因| 请问尿路感染吃什么药最好| 前列腺不能吃什么食物| 电器发生火灾用什么灭火器| 乳头突然疼痛什么原因| 冬日暖阳是什么意思| 洗牙挂什么科| 扁平息肉属于什么性质| 穹隆什么意思| 霜降吃什么| 吃什么有助于排便| 香蕉皮擦脸有什么作用与功效| 介质是什么意思| 睡觉咳嗽是什么原因| 为什么空调外机不转| 叶芽是什么| 鱼缸为什么不能送人| 尿胆原是什么| 打生长激素有什么副作用| 眼睛散光是什么原因造成的| 男人肝火旺吃什么药| 汗血宝马什么意思| 一路长虹什么意思| 胆囊炎吃什么消炎药| 面瘫吃什么药好| afp检查是什么意思| 可拉明又叫什么| 指甲黑线是什么原因| icu什么意思| jealousy是什么意思| 怀孕什么时候建档| 气血不足吃什么食物最好| 尿痛什么原因引起的| 2024什么年属什么年| 喉咙疼吃什么水果好| 胃病吃什么好| 老公的弟弟叫什么| 喝水都长肉是什么原因| 梦见死人复活什么预兆| 三级护理是什么意思| 为什么经常刷牙还牙黄| johnson是什么品牌| 残联是什么性质的单位| 1月出生是什么星座| 月经期间适合吃什么| 抬举是什么意思| 麝香是什么味道| 发泡实验是检查什么的| 妈妈生日送什么礼物好| 梦见筷子是什么预兆| 中医为什么下午不把脉| 同化什么意思| 03属什么生肖| 手长水泡是什么原因| 海参吃了有什么好处| 人死了是什么感觉| ipa啤酒是指什么| 鼠标cpi是什么意思| 朱砂是什么颜色| 舌苔发紫是什么原因| 生肖龙和什么生肖相冲| 黄历修造是什么意思| 瘢痕子宫什么意思| 猫什么时候打疫苗| 吃万艾可有什么副作用| 毛囊炎吃什么药| 知柏地黄丸治疗什么病| 什么是闭合性跌打损伤| 大水冲了龙王庙什么意思| 舌苔发白厚吃什么药| 情人节送什么给女孩子| 什么的愿望| 飞机打多了会有什么严重的后果吗| 胸口疼应该挂什么科| 十二生肖里为什么没有猫| 肝内胆管结石吃什么药好| vca是什么牌子| 头眩晕是什么原因引起的| 中分化是什么意思| 黄芪和什么泡水壮阳| 莲花代表什么象征意义| npv是什么| 女性尿道口有小疙瘩是什么原因| 仙草是什么草| 皮肤痒用什么药最好| 胆固醇低吃什么| 安瓶是什么| nsa是什么意思| 站着头晕是什么原因| 4.22是什么日子| 苦荞茶喝了有什么好处| 心律不齐是什么病| 武警支队长是什么级别| cin是什么意思| 急性咽喉炎吃什么药| 农历今天属什么生肖| gold是什么牌子| 什么的秋天| 坐围和臀围有什么区别| 1月17号是什么星座| 晚上看到黄鼠狼什么预兆| clean什么意思| 小跟班是什么意思| 主管药师是什么职称| 茶叶有什么功效| 主观臆断是什么意思| cc是什么牌子| 什么是溺水| 奶昔是什么| 林深时见鹿是什么意思| 老人经常头晕是什么原因引起的| 甲状腺阳性是什么意思| 木薯粉是什么东西| 阿司匹林肠溶片治什么病| 更年期什么意思| 为什么拔牙后不能吐口水| 垂体瘤是什么病| 女性阴部潮湿是什么原因| 我们到底什么关系| 什么水果降血糖| 晒后修复用什么比较好| 喉咙痛流鼻涕吃什么药| 平安夜做什么| 指标到校是什么意思| 白细胞计数偏低是什么意思| 黑头发有什么好处脑筋急转弯| 什么是子宫憩室| 黄色有什么黄| 音召念什么| 九月初八是什么星座| 1月29号什么星座| 百度
rfc:pdo_escape_placeholders

七旬婆婆阳台喊救命 儿媳房内看电视不理民警

Introduction

百度 由此可见,现在不仅是海归报国的好时期,而且是从未有过的好时期。

PostgreSQL, and possibly other databases, allow the usage of the question mark (“?”) character in operators, either alone or part of a multi-character operator. In fact, as of today, core Postgres currently has 21 operators that include it in their names. Most of them belong to geometric types 1), but 3 of them apply to the jsonb type 2), which has been introduced in Postgres 9.4 and has a much wider and growing audience. Unfortunately it is impossible to use them with the PDO extension, due to a clash with the positional parameter placeholder, which can't currently be escaped, nor disabled.

Proposal

Improve the PDO SQL parser so that question marks can be escaped by doubling them, similarly to what the SQL standard does with single quotes within string literals, which is also the same behaviour implemented in JDBC 3). That means that the “??” string would be translated to “?” when sending the query to the database, whereas “?” is still going to be interpreted as a positional parameter placeholder.

For example it would be possible to do the following:

$stmt = $pdo->prepare('SELECT * FROM tbl WHERE json_col ?? ?');
$stmt->execute(['foo']); 

which would effectively run the following query:

SELECT * FROM tbl WHERE json_col ? 'foo'

Backward Incompatible Changes

The parsing of the “??” character sequence within queries is going to change, but only when they are outside of literal strings or comments. Since such character sequence isn't normally valid SQL syntax, no BC break is expected.

The only exception to that is that Postgres (and possibly other RDMSs) allows the creation of custom operators: anyone having a custom “??” operator in use would need to escape it as “????”.

Since the change affects the PDO SQL parser, all the drivers could potentially use escaping, unless they use the “?” character themselves as prepared statement parameter placeholder. In that case “??” will be sent to the database as-is do avoid any confusion.

Proposed PHP Version(s)

Next PHP 7.x, which is 7.4.

RFC Impact

To SAPIs

No impact.

To Existing Extensions

All PDO drivers will be saffected by the change, but there is no API change.

To Opcache

No impact.

Open Issues

None.

Alternative proposals

Why not \?

That was my first idea, but backslash is the escaping symbol for strings themselves, which was potentially making eventual escaping quite confusing: in order to send a backslash followed by a positional parameter placeholder one would have to write “\\\?” or “\\\\?”, as “\\?” is in fact equivalent to “\?”.

New PDO Flags

It had been proposed to add some flags to enable/disable usage of positional and/or named PDO parameter placeholders. After some evaluation, I've discarded it as I would find them unpractical to use (e.g. set the flag, execute, restore previous flags), potentially harmful for any code that follows (e.g. flags not reset after catching an exception), if at all a viable option for users of ORM or abstraction libraries.

Custom placeholder styles for drivers

Another suggestion was to use different styles for placeholders to match the database driver in use, which to me seems a huge step backwards.

Unaffected PHP Functionality

Everything not PDO.

Vote

Started 7th July 2019. Ends 22nd July 2019

Add ?? as a way to escape ? in PDO parametrised queries?
Real name Yes No
aeoris (aeoris)  
ashnazg (ashnazg)  
bishop (bishop)  
carusogabriel (carusogabriel)  
cpriest (cpriest)  
derick (derick)  
duncan3dc (duncan3dc)  
galvao (galvao)  
girgias (girgias)  
guilhermeblanco (guilhermeblanco)  
jasny (jasny)  
kalle (kalle)  
kguest (kguest)  
levim (levim)  
mbeccati (mbeccati)  
mike (mike)  
nikic (nikic)  
ocramius (ocramius)  
petk (petk)  
pmjones (pmjones)  
ramsey (ramsey)  
rjhdby (rjhdby)  
rtheunissen (rtheunissen)  
salathe (salathe)  
santiagolizardo (santiagolizardo)  
sergey (sergey)  
svpernova09 (svpernova09)  
trowski (trowski)  
yunosh (yunosh)  
Final result: 27 2
This poll has been closed.

Proposed Voting Choices

This RFC requires a 2/3 majority

Patches and Tests

References

rfc/pdo_escape_placeholders.txt · Last modified: by 127.0.0.1

?
男士私处用什么清洗 吃的多拉的少是什么原因 总是犯困是什么原因 aivei是什么品牌 免疫是什么意思
什么症状吃肝胃气痛片 保姆代表什么生肖 什么叫假性发烧 土龙是什么 夫妻是什么
什么是血脂高 乌龟死了是什么样子 什么工作好 c肽测定是什么意思 咳嗽雾化用什么药
脾胃不好吃什么食物 脓毒血症是什么病 间质性肺病是什么意思 似曾相识是什么意思 gl小说是什么意思
呓语是什么意思cj623037.com 主食都有什么hcv7jop6ns7r.cn hf是什么helloaicloud.com 警察两杠三星是什么级别hcv9jop4ns0r.cn 甲状腺结节对身体有什么影响sscsqa.com
洗了牙齿要注意什么qingzhougame.com 长方形纸可以折什么hcv9jop0ns7r.cn 无创和羊水穿刺有什么区别hcv8jop6ns0r.cn 史字五行属什么hcv9jop2ns9r.cn inr医学上是什么意思hcv8jop1ns8r.cn
bpc是什么意思hcv9jop2ns7r.cn 香港商务签证需要什么条件baiqunet.com 剃光头有什么好处hcv8jop0ns8r.cn 血压是什么hcv8jop8ns5r.cn 预检是什么意思hcv8jop5ns4r.cn
车抛锚是什么意思hcv7jop6ns7r.cn 李连杰什么病hcv8jop9ns5r.cn 喉炎雾化用什么药mmeoe.com 哥弟属于什么档次bjcbxg.com 什么的滋味hcv8jop5ns8r.cn
百度