Hello:

> Are you sure? I was testing this yesterday and nothing was thrown.

It should be done in XdrStream for the standalone server GDS implementation.


case DbDataType.Char:
     if (param.Charset.IsOctetsCharset)
     {
         this.WriteOpaque(param.DbValue.GetBinary(), param.Length);
     }
     else
     {
        string svalue = param.DbValue.GetString();

         if ((param.Length % param.Charset.BytesPerCharacter) == 0 &&
             svalue.Length > param.CharCount)
         {
             *throw new IscException(335544321);*
         }

         this.WriteOpaque(param.Charset.GetBytes(svalue), param.Length);
        }
        break;

case DbDataType.VarChar:
     if (param.Charset.IsOctetsCharset)
     {
         this.WriteOpaque(param.DbValue.GetBinary(), param.Length);
     }
     else
     {
        string svalue = param.DbValue.GetString().TrimEnd();

         if ((param.Length % param.Charset.BytesPerCharacter) == 0 &&
                svalue.Length > param.CharCount)
        {
                *throw new IscException(335544321);*
        }

         byte[] data = param.Charset.GetBytes(svalue);

        this.WriteBuffer(data, data.Length);
     }
     break;




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to