Simple question about Options.Charset property

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Moehre
Posts: 42
Joined: Fri 11 Nov 2005 11:37

Simple question about Options.Charset property

Post by Moehre » Thu 01 Jun 2006 12:35

Hello!

If I change the TOraSession.Options.Charset property at runtime, do I have to close an existing connection first for the changes to take effect?

For example:

OraSession1.Connected := true;
...
OraSession1.Connected := false;
OraSession1.Options.Charset := 'WE8MSWIN1252';
OraSession1.Connected := true;
...

I am not sure wether I have to close the connection first or not ... if not, it would save some time in my applications ...

thx
Moehre

Alex
Posts: 655
Joined: Mon 08 Nov 2004 08:39

Post by Alex » Fri 02 Jun 2006 13:48

You should change Options.Charset property of TOraSession component only when it is disconnected.

Post Reply