Thread: Getting DateStyle Using C++ Library

Getting DateStyle Using C++ Library

From
Colin Taylor
Date:
Hi,
I am new to the list, just joined this morning.
I am writing a PostGreSQL client using C++, and am having fun with the
DateStyle variable.
I can set the variable using exec("set DateStyle = 'European'").
But I am having fun reading the current setting.
I guess the start is exec("show DateStyle").
But then I get stuck.
How do I get the result of the exec("show DateStyle"), into a C++ variable,
for example.
Thanks,
Colin