Search found 193 matches

by btrewern
01.05.2007, 09:06
Forum: MySQL
Topic: Timeout - Doesn't timeout in time to prevent hanging
Replies: 4
Views: 1734

Sound like this would be database specific. What database are you using?

Regards,

Ben
by btrewern
23.04.2007, 09:43
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZStroreProc
Replies: 1
Views: 744

ZStoredProc doesn't currently support PosgreSQL's functions. Use ZQuery instead.

Regards,

Ben
by btrewern
19.04.2007, 11:29
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Query that do not a result, while it must!
Replies: 2
Views: 558

try ZQuery1.ParamByName('UserNameTxt').AsString := UserNameTxt.Text; ZQuery1.ParamByName('PasswordTxt').AsString := PasswordTxt.Text; instead of UserNameTxt.Text := ZQuery1.ParamByName('UserNameTxt').AsString; PasswordTxt.Text:= ZQuery1.ParamByName('PasswordTxt').AsString; Regards, Ben
by btrewern
12.04.2007, 14:20
Forum: SQLite
Topic: Simple query
Replies: 3
Views: 1823

I agree that it can't get much easier but if you are doing this often, you could create a function to do it. Also have you looked at the TZSequence component? It could be useful for this but I'm not sure what databases it supports. BTW Query.Open is completely equivalent to Query.Active := True; Ben
by btrewern
21.03.2007, 17:23
Forum: PostgreSQL
Topic: RAISE NOTICE event on Zeos
Replies: 6
Views: 2772

@Ben : I think the OP wanted to catch the errors raised on the server. Maybe, but RAISE NOTICE is different to LISTEN / NOTIFY which is what was supported by previous versions of ZeosLib, that's all I was saying. On PostgreSQL's command line: postgres=# listen some_message; LISTEN postgres=# notify...
by btrewern
21.03.2007, 16:11
Forum: PostgreSQL
Topic: RAISE NOTICE event on Zeos
Replies: 6
Views: 2772

I think the OP was talking about something other than LISTEN / NOTIFY. ( http://www.postgresql.org/docs/8.2/interactive/sql-notify.html ) RAISE NOTICE is similar to RAISE EXCEPTION and used in PL/pgSQL functions to return messages within the function call without aborting the transaction. See here: ...
by btrewern
12.03.2007, 17:46
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Error on installing Zeos 6.6.0
Replies: 1
Views: 831

The above messages are all expected when you install ZeosLib. The .res files do need to be recreated and only the ZComponentDesign100.bpl file should be installed. The others should just be compiled.

Regards,

Ben
by btrewern
09.03.2007, 10:04
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Updatable Query
Replies: 7
Views: 1706

Try the TZQuery.CanModify property.

Regards,

Ben
by btrewern
07.03.2007, 16:54
Forum: User Patches
Topic: [bug_fixed] Master-detail close/open
Replies: 5
Views: 2309

Thanks Edwin!!

I came across this same problem about a year ago and spent ~2 days trying to work out how to fix it.

Sometimes you can't see the wood for the trees.

Regards,

Ben
by btrewern
05.03.2007, 14:59
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: bds 2006 and postgre
Replies: 3
Views: 1236

BTW you could just use PostgreSQL-7 protocol and the libpq73.dll. I don't think ZeosLib uses much, if any of the new features available in the new dlls.

Regards,

Ben
by btrewern
05.03.2007, 14:49
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: bds 2006 and postgre
Replies: 3
Views: 1236

You'll also need to put the following files in the system32 folder (or your programs folder):

comerr32.dll
iconv.dll
krb5_32.dll
libeay32.dll
libiconv-2.dll
libintl-2.dll
ssleay32.dll

which you can find in the bin folder of a windows version of a PostgreSQL install.

Regards,

Ben
by btrewern
05.03.2007, 14:38
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: Required is true for calculate field?
Replies: 3
Views: 1118

Try setting

Code: Select all

MyZQuery.FieldByName('Calc').Required := False;
Not tested but should work.

Regards,

Ben
by btrewern
05.03.2007, 14:33
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: DataType ftTime limited to 24 hours
Replies: 2
Views: 822

What you need is an 'Interval' data type. I'm not sure MySQL supports it (BTW PostgreSQL does). If MySQL doesn't have such a thing you might be better off just using a large floating point data type. I think that is what TDateTime is anyway so it might be a good fit.

Regards,

Ben
by btrewern
02.03.2007, 11:39
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: The text type column value isn't correct, always is (MEMO).
Replies: 2
Views: 1042

I've learned from bitter experience that you need varchar(254) instead of text for most string fields. In Delphi anything bigger is a problem as it's always treated as a Memo field. It also helps when using MS Access to connect to PostgreSQL. BTW if you just want to view your Memo fields in a dbgrid...
by btrewern
01.03.2007, 17:58
Forum: 6.5.1 (alpha) - 6.6.x (beta)
Topic: ZSequence.pas Bug 6.6.0 & 6.6.1
Replies: 4
Views: 1400

I think he means it's an interface and will release itself if you set it to nil.

Regards,

Ben