http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54213
Bug #: 54213 Summary: please help to determine wether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) Classification: Unclassified Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: enhancement Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: lirex.softw...@gmail.com Created attachment 27968 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27968 a c++ source file hello, Windows XP (I guess, that it is an OEM version) Home edition, service pack 3 installed. I use a PostgreSQL database and manipulate data from an GCC c++ application under Windows XP. I use libpq-fe.h library. and I noticed, that if I use an SQL string "... order by..." - then it could represent data normally in an combobox element, but if I use a second SQL query to find one field using almost the same query then some ids from 1 and 2 queries are not equal. I found a solution by excluding "... order by...". But it is not convient to see surnames unsorted... Is it a PostgreSQL error's side or GCC? please help to determine, because I'm not professional on it. My normal compiler options: c++ -I"D:\Program Files\PostgreSQL\9.1\include" -L"D:\Program Files\PostgreSQL\9.1\lib" -lpq -o %application_file% %application_file%.cpp -Wl,--subsystem,windows -lgdi32 -lcomctl32 -D_WIN32_IE=0x0300 Compiler options to generate extra debug files: c++ -I"D:\Program Files\PostgreSQL\9.1\include" -L"D:\Program Files\PostgreSQL\9.1\lib" -lpq -o %application_file% %application_file%.cpp -Wl,--subsystem,windows -lgdi32 -lcomctl32 -D_WIN32_IE=0x0300 -save-temps Regards, Denis Kolesnik.