RE: [PHP-DEV] PDO Parameter types // PDO::PARAM_AUTO

2017-05-19 Thread Dorin Marcoci
> > It's not an empty string. > > My mistake, I ran the wrong example test script through the debugger. It is > an empty string, sorry. That's why I'm trying to preach this :) really annoying to guess/detect and put once again param type while driver know it! -- PHP Internals - PHP Runtime Dev

[PHP-DEV] RE: PDO Parameter types // PDO::PARAM_AUTO

2017-05-19 Thread Dorin Marcoci
Hello Adam, > From: Adam Baratz [mailto:adambar...@php.net] > Sent: Friday, May 19, 2017 1:26 PM >> Maybe even a better way is just to change default param type from PARAM_STR >> to PARAM_AUTO in bindValue family routines, without any driver options or >> configs. >> So if drivers supports ser

[PHP-DEV] RE: PDO Parameter types // PDO::PARAM_AUTO

2017-05-19 Thread Dorin Marcoci
Hi Adam, From: Adam Baratz [mailto:adambar...@php.net] Sent: Friday, May 19, 2017 1:26 PM Maybe even a better way is just to change default param type from PARAM_STR to PARAM_AUTO in bindValue family routines, without any driver options or configs. So if drivers supports server prepares wi

[PHP-DEV] RE: PDO Parameter types // PDO::PARAM_AUTO

2017-05-18 Thread Dorin Marcoci
Hi Adam, > From: Adam Baratz [mailto:adambar...@php.net] > Sent: Thursday, May 18, 2017 3:23 PM >> That's why I think, it will be great to have a special type like >> PDO::PARAM_AUTO and a config flag to set it as default instead of PARAM_STR. > The risk with this is queries could lose portabil

RE: [PHP-DEV] PDO Parameter types // PDO::PARAM_AUTO

2017-05-18 Thread Dorin Marcoci
>>! When a bool ZVAL variable is converted to a string ZVAL. >> Your example is irrelevant. >Ok, I think I got it. But the example shows that the pgsql driver is working, >so maybe you could have a look at how it works. >e.g. >https://github.com/php/php-src/blob/master/ext/pdo_pgsql/pgsql_stateme

[PHP-DEV] Re: [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Dorin Marcoci
> I would agree that NULL is not a type and the constant shouldn't have > been there in the first place, but I think it could be a bit too late now. Raising an warning for first 1-2 years with later removal sounds OK. Also docs should be updated to mark this constant deprecated. Yes, null is a st

RE: [PHP-DEV] PDO Parameter types // PDO::PARAM_AUTO

2017-05-18 Thread Dorin Marcoci
Hello Matteo, -Original Message- From: Matteo Beccati [mailto:p...@beccati.com] Sent: Thursday, May 18, 2017 8:13 AM >> But when implementing FB Boolean data type parameters and doing >> ->bindValue ('bool_param', false) I get an empty string internally. >> >> Yes, true ZVAL is convert

[PHP-DEV] PDO Parameter types // PDO::PARAM_AUTO

2017-05-15 Thread Dorin Marcoci
Hello Everyone! Currently PDOStatement::bindValue is declared as public bool PDOStatement::bindValue ( mixed $parameter , mixed $value [, int $data_type = PDO::PARAM_STR ] ) where third parameter is data type, string type as default. It may be useful in terms of providing meta info and ha

RE: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver

2017-01-10 Thread Dorin Marcoci
charset/collate, for other types numeric precision etc... Thank You, - Dorin Marcoci -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver

2017-01-10 Thread Dorin Marcoci
or a value. See #73852 bug. So PDO should be extended with at least PDO::PARAM_FLOAT to add floats/double mapping. It needs an RFC to be extended. In plans is to add yet for booleans, Firebird3 bool data type. - Dorin Marcoci From: marius adrian popa [mailto:map...@gmail.com] Sent: Tuesday

RE: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver

2017-01-06 Thread Dorin Marcoci
P Developers Mailing List' ; 'Dorin Marcoci' Subject: RE: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver Hi, > -Original Message- > From: Adam Baratz [mailto:adambar...@php.net] > Sent: Fr

RE: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver

2017-01-06 Thread Dorin Marcoci
tmt.c#L656 - Dorin Marcoci -Original Message- From: Anatol Belski [mailto:anatol@belski.net] Sent: Friday, January 6, 2017 9:13 PM To: 'Adam Baratz' ; 'marius adrian popa' Cc: 'PHP Developers Mailing List' ; 'Dorin Marcoci' Subject: RE:

[PHP-DEV] Call for help, bug #73087

2016-09-20 Thread Dorin Marcoci
It is near impossible to use this package due to this bug in a serious project... - Dorin Marcoci -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php