I've got a column defined as

   MODACTION               D_MODACTION ,

where the domain is defined as

CREATE DOMAIN D_MODACTION AS
  CHAR(1) CHARACTER SET ASCII
  NOT NULL
  CHECK (VALUE IN ( 'A', 'U', 'D', 'M', 'S' ))
  COLLATE ASCII;

I've got a record which appears to have 'A' in this field.

But when I do a "SELECT * FROM ..." (from PHP using ibase_fetch_assoc) I 
don't get the string

'A'

I get the string

'A   '

(three spaces after the A). Yes this may be a PHP question, but just in 
case it isn't, any ideas?

-- 
Tim Ward

  • ... emad...@yahoo.com.au [firebird-support]
    • ... Svein Erling Tysvær svein.erling.tysv...@kreftregisteret.no [firebird-support]
      • ... Tim Ward t...@telensa.com [firebird-support]
        • ... Nick Upson n...@telensa.com [firebird-support]
        • ... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
          • ... Tim Ward t...@telensa.com [firebird-support]
            • ... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
              • ... Tim Ward t...@telensa.com [firebird-support]
      • ... emad...@yahoo.com.au [firebird-support]
        • ... 'Leyne, Sean' s...@broadviewsoftware.com [firebird-support]
        • ... Helen Borrie hele...@iinet.net.au [firebird-support]
        • ... Mark Rotteveel m...@lawinegevaar.nl [firebird-support]
          • ... 'Bogdan' bog...@mordicom.si [firebird-support]

Reply via email to