On 29/04/2011 04:11, Geoff Worboys wrote:
>
> As far as I can tell it is still required to use
> isc_dsql_execute_immediate to perform a CREATE DATABASE  (if
> I've missed any relevant API change in the release notes please
> forgive me, I did look).
>
Could also be done with isc_create_database.

> So when isc_dsql_execute_immediate is called with CREATE DATABASE
> the database handle is null and there is no current connection
> character set.  How is the statement string interpreted?
>
CREATE DATABASE is preparsed in the client. It has SET NAMES <charset> 
clause.

Client don't send it to server. It calls isc_create_database passing 
isc_dpb_lc_ctype.

There is no SQL text command involved.


Adriano


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to