cmd update affect field not in command
--------------------------------------

                 Key: CORE-6146
                 URL: http://tracker.firebirdsql.org/browse/CORE-6146
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0.4
         Environment: firebird 3.04 64 bits + windows 10. page size 4096
            Reporter: ANDERSON BARRETTA
            Priority: Critical


I created a new database with only one table. and I pump 480,000 records.
I do not have TRIGGERS, NOTHING.

only:
CREATE TABLE NOTAVENDA (
    COD_NOTAVENDA      INTEGER NOT NULL, 
    CODCFOP_NOTAVENDA   INTEGER,
    XMLNFE_NOTAVENDA    BLOB SUB_TYPE 0 SEGMENT SIZE 80 
);


FIELD CODCFOP_NOTAVENDA HAS SOME NULLS.

WHEN I RUN COMMAND "  UPDATE NOTAVENDA SET CODCFOP_NOTAVENDA = 
CODCFOP_NOTAVENDA WHERE (CODCFOP_NOTAVENDA > 0) "

FIELD XML becomes null in more than 300 records.

BUT IF I USE COALESCE 
   WHERE COALESCE((CODCFOP_NOTAVENDA,0) > 0)

NO PROBLEM OCCURS.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to