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

2017-01-04 Thread marius adrian popa
Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver Testing is welcome! You need to compile his own branch Related PDO_Firebird feature request https://bugs.php.net/bug.php?id=72583

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

2017-01-06 Thread Adam Baratz
> > Firebrid > native type mapping for integers (smallint, integer, bigint) in > PDO_Firebird driver It looks like this is an "always on" feature. There's a PDO attribute, PDO::ATTR_STRINGIFY_FETCHES, that's intended to allow toggling. Since this

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

2017-01-06 Thread Anatol Belski
Hi, > -Original Message- > From: Adam Baratz [mailto:adambar...@php.net] > Sent: Friday, January 6, 2017 7:59 PM > To: marius adrian popa > Cc: PHP Developers Mailing List > Subject: Re: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for > integers (smal

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
[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: Friday, January 6, 2017 7:59 PM > To: marius adrian popa > Cc: PHP Dev

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-10 Thread marius adrian popa
Belski [mailto:anatol@belski.net] > Sent: Friday, January 6, 2017 9:13 PM > To: 'Adam Baratz' ; 'marius adrian popa' < > map...@gmail.com> > Cc: 'PHP Developers Mailing List' ; 'Dorin > Marcoci' > Subject: RE: [PHP-DEV] Dorin Mar

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
, January 10, 2017 3:33 PM To: Dorin Marcoci Cc: Anatol Belski ; Adam Baratz ; PHP Developers Mailing List Subject: Re: [PHP-DEV] Dorin Marcoci Added Firebrid native type mapping for integers (smallint, integer, bigint) in PDO_Firebird driver Could you add also type mapping for float , double

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

2017-01-10 Thread Adam Baratz
> > Unfortunately with current PDO state this is not possible to be done in a > nice way. > Now PDO have defined just these field types: PDO::PARAM_BOOL, > PDO::PARAM_INT, PDO::PARAM_STR, PDO::PARAM_LOB, PDO::PARAM_NULL. > Last one is “wrong” and should be removed. NULL is a state, not a type or >

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
Hello Adam, That's why I wrote " is not possible to be done it in a _nice_ way", where "nice" is the key :) Yes, currently it can be done by using ZVALs, but I find it over-layered & over-structured than simply pass a zend_long for example in case of ints. As I understand ZVAL purpose in PHP is