msphpsql icon indicating copy to clipboard operation
msphpsql copied to clipboard

Add fetch_bignumeric attribute

Open startork opened this issue 2 years ago • 2 comments

Related to #1498

Add in optional bignumeric attribute which converts sql bigints to php ints and sql decimal and numeric to php float

Add basic tests for string vs int/float returns

startork avatar Jan 20 '24 13:01 startork

Hi @v-makouz Would you be able to give me some advice? I'm unsure whether to a) Treat bigints as integers straight from the start, using c++ long long types or b) to handle similar to datetime, keeping existing code as much as possible and only converting to int when required as a zval.

Thanks, Starsky

startork avatar Jan 22 '24 09:01 startork

I think treating it like datetime would be more straightforward. But I see there are still some automated test fails, like the "Numeric value out of range"

v-makouz avatar Feb 01 '24 23:02 v-makouz