Search found 5 matches

by folibis
16.05.2007, 23:59
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: zeos & postgresql
Replies: 4
Views: 1020

both CAST and ::integer returns "False" in this query :?
I don't know what the reason ...

But CASE is good idea ... I guess i take it :) thanks
by folibis
16.05.2007, 04:43
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: zeos & postgresql
Replies: 4
Views: 1020

ok ... I resolve the problem.
It must by "field"::::integer from any reason.
But now query return value "False" without conversion.
I need integer value ....
by folibis
16.05.2007, 03:54
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: zeos & postgresql
Replies: 4
Views: 1020

zeos & postgresql

I use ZEOS component in Builder C++ with PostgreSQL 8.2
I've got strange error with query
select "field"::integer from "table"
syntax error at or near ":"

type of "field" is boolean
what can it be?
by folibis
07.03.2007, 02:00
Forum: SQLite
Topic: own function
Replies: 2
Views: 1649

Ok, I've found a way to do that [code] void func(void * p,int n,char ** pp) { } IZSQLiteConnection * sqliteConn = NULL; ZConnection1->DbcConnection->QueryInterface(&sqliteConn); sqliteConn>GetPlainDriver()>CreateFunction(sqliteConn>GetConnectionHandle(),"IDENT_CURRENT",1,func,NULL); sq...
by folibis
06.03.2007, 06:03
Forum: SQLite
Topic: own function
Replies: 2
Views: 1649

own function

How can I create my own function with ZEOS and Builder C++?
I mean how to access sqlite function "sqlite3_create_function"? I need sqlite handle for it ...