List:General Discussion« Previous MessageNext Message »
From:Gleb Paharenko Date:January 11 2006 2:33pm
Subject:Re: BIT datatype and prepared statements
View as plain text  
Hello.

> This doesn't list BIT at all:
>http://dev.mysql.com/doc/refman/5.0/en/c-api-prepared-statement-datatypes.html

Have you tried MYSQL_TYPE_BIT? It is listed among others in mysql_com.h.



Martijn Tonies wrote:
> Hi there,
> 
> Still tracking down the BIT problems. For a simple statement, prefixing it
> with
> b'<binary value>' works (as written in the documentation). Even with the
> STRICT
> mode turned ON.
> 
> However, for prepared statements, how do you bind a BIT(1) or BIT(n)?
> 
> This doesn't list BIT at all:
> http://dev.mysql.com/doc/refman/5.0/en/c-api-prepared-statement-datatypes.html
> 
> 
> Any pointers?
> 
> 
> Martijn Tonies
> Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
> Server
> Upscene Productions
> http://www.upscene.com
> Database development questions? Check the forum!
> http://www.databasedevelopmentforum.com
> 
> 


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.NET http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Gleb Paharenko
 / /|_/ / // /\ \/ /_/ / /__   Gleb.Paharenko@stripped
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.NET
       <___/   www.mysql.com



Thread
BIT datatype and prepared statementsMartijn Tonies11 Jan
  • Re: BIT datatype and prepared statementsGleb Paharenko11 Jan