Changeset 016bb96 in tol


Ignore:
Timestamp:
Nov 19, 2008, 8:54:24 AM (18 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
24c9ec0
Parents:
72b77ba
Message:

Using sepecific numeric NULL in PosgreSql formatting methods

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@192 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/stdlib/data/db/engine/_sqlpos.tol

    r72b77ba r016bb96  
    5050Text SqlPosFormatReal(Real rea)
    5151//////////////////////////////////////////////////////////////////////////////
    52 {
     52{  //Hay que realizar un casting porque si no toma el nulo como cadena
    5353  Real isUnk = IsUnknown(rea);
    5454  Real isInf = IsInfinite(rea);
    55   If(Or(isUnk, isInf), "null",
     55  If(Or(isUnk, isInf), "NULL::float8",
    5656   FormatReal(rea,SqlPosFormatRealTol2Sql))
    5757};
    … …  
    6565Text SqlPosFormatInteger(Real rea)
    6666//////////////////////////////////////////////////////////////////////////////
    67 {
     67{//Hay que realizar un casting porque si no toma el nulo como cadena
    6868  Real isUnk = IsUnknown(rea);
    6969  Real isInf = IsInfinite(rea);
    70   If(Or(isUnk, isInf), "null", IntText(rea))
     70  If(Or(isUnk, isInf), "NULL::int", IntText(rea))
    7171};
    7272//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.