php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #65613
Patch ingres_bigint_on_64bit_machine.patch revision 2013-09-04 10:07 UTC by antoxa at corp dot badoo dot com

Patch ingres_bigint_on_64bit_machine.patch for ingres Bug #65613

Patch version 2013-09-04 10:07 UTC

Return to Bug #65613 | Download this patch
Patch Revisions:

Developer: antoxa@corp.badoo.com

diff --git a/ingres-2.2.4.orig/ingres.c b/ingres-2.2.4/ingres.c
index 078c26b..601ac70 100644
--- a/ingres-2.2.4.orig/ingres.c
+++ b/ingres-2.2.4/ingres.c
@@ -4280,7 +4280,7 @@ static void php_ii_fetch(INTERNAL_FUNCTION_PARAMETERS, II_RESULT *ii_result, int
                                             }
                                             else
                                             {
-                                                value_long = (long) *((II_INT4 *) columnData[k].dv_value);
+                                                value_long = (long) *((II_INT8 *) columnData[k].dv_value);
                                             }
                                             break;
 #endif
@@ -7182,7 +7182,7 @@ static short php_ii_setup_return_value (INTERNAL_FUNCTION_PARAMETERS, IIAPI_DATA
                         }
                         else
                         {
-                            value_long = (long) *((II_INT4 *) columnData->dv_value);
+                            value_long = (long) *((II_INT8 *) columnData->dv_value);
                         }
                         break;
 #endif
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC