public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting)
@ 2012-08-09 20:11 lirex.software at gmail dot com
  2012-08-09 20:15 ` [Bug c++/54214] " lirex.software at gmail dot com
                   ` (19 more replies)
  0 siblings, 20 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-09 20:11 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

             Bug #: 54214
           Summary: (corrected copyright notes in source file)please help
                    to determine whether 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: unassigned@gcc.gnu.org
        ReportedBy: lirex.software@gmail.com


Created attachment 27972
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27972
a c++ source file

hello,

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.

Regards,
Denis Kolesnik.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
@ 2012-08-09 20:15 ` lirex.software at gmail dot com
  2012-08-09 20:18 ` lirex.software at gmail dot com
                   ` (18 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-09 20:15 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #1 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-09 20:15:26 UTC ---
Created attachment 27973
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27973
additional files to source asked


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
  2012-08-09 20:15 ` [Bug c++/54214] " lirex.software at gmail dot com
@ 2012-08-09 20:18 ` lirex.software at gmail dot com
  2012-08-09 20:19 ` lirex.software at gmail dot com
                   ` (17 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-09 20:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #2 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-09 20:18:08 UTC ---
Created attachment 27974
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27974
object file


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
  2012-08-09 20:15 ` [Bug c++/54214] " lirex.software at gmail dot com
  2012-08-09 20:18 ` lirex.software at gmail dot com
@ 2012-08-09 20:19 ` lirex.software at gmail dot com
  2012-08-09 20:22 ` [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a " lirex.software at gmail dot com
                   ` (16 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-09 20:19 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #3 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-09 20:19:29 UTC ---
Created attachment 27975
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27975
assembler source file


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (2 preceding siblings ...)
  2012-08-09 20:19 ` lirex.software at gmail dot com
@ 2012-08-09 20:22 ` lirex.software at gmail dot com
  2012-08-09 20:25 ` lirex.software at gmail dot com
                   ` (15 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-09 20:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #4 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-09 20:22:40 UTC ---
operation system is Windows XP Home Edition(I guessit is an OEM version) with
Service Pack 3 installed.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (3 preceding siblings ...)
  2012-08-09 20:22 ` [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a " lirex.software at gmail dot com
@ 2012-08-09 20:25 ` lirex.software at gmail dot com
  2012-08-09 21:51 ` redi at gcc dot gnu.org
                   ` (14 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-09 20:25 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #5 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-09 20:24:54 UTC ---
my operation system is Windows XP Home Edition(I guess it is an OEM version)
with Service Pack 3 installed.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (4 preceding siblings ...)
  2012-08-09 20:25 ` lirex.software at gmail dot com
@ 2012-08-09 21:51 ` redi at gcc dot gnu.org
  2012-08-16 22:38 ` lirex.software at gmail dot com
                   ` (13 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: redi at gcc dot gnu.org @ 2012-08-09 21:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-09 21:50:59 UTC ---
Why is this marked "enhancement" ?

Is this the same issue as PR 54213 ? If so please close that one.

What exactly is your question and why do you think it's anything to do with
GCC?


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (5 preceding siblings ...)
  2012-08-09 21:51 ` redi at gcc dot gnu.org
@ 2012-08-16 22:38 ` lirex.software at gmail dot com
  2012-08-18 21:20 ` lirex.software at gmail dot com
                   ` (12 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-16 22:38 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #7 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-16 22:38:19 UTC ---
*** Bug 54213 has been marked as a duplicate of this bug. ***


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (6 preceding siblings ...)
  2012-08-16 22:38 ` lirex.software at gmail dot com
@ 2012-08-18 21:20 ` lirex.software at gmail dot com
  2012-08-18 21:41 ` lirex.software at gmail dot com
                   ` (11 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-18 21:20 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #8 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-18 21:19:51 UTC ---
my command line for compile:

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

-save-temps - this option I use to have all files included(assembler source,
etc...)


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (7 preceding siblings ...)
  2012-08-18 21:20 ` lirex.software at gmail dot com
@ 2012-08-18 21:41 ` lirex.software at gmail dot com
  2012-08-18 22:09 ` lirex.software at gmail dot com
                   ` (10 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-18 21:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #9 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-18 21:41:05 UTC ---
(In reply to comment #6)
> Why is this marked "enhancement" ?
> 
> Is this the same issue as PR 54213 ? If so please close that one.
> 
> What exactly is your question and why do you think it's anything to do with
> GCC?

I want to be last names sorted in a combobox alphabetically and use for it
"...order by str_last_name...".

Then I use one line returning SQL request, which helps to determine with wich
table id it is(by using SQL "...offset..." and combobox item number) and data
represented with table id not equals with id returned by the second SQL query.

The problem is solved if I do not use "...order by str_last_name..." but it is
not convenient to have data unsorted...


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (8 preceding siblings ...)
  2012-08-18 21:41 ` lirex.software at gmail dot com
@ 2012-08-18 22:09 ` lirex.software at gmail dot com
  2012-08-18 22:13 ` lirex.software at gmail dot com
                   ` (9 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-18 22:09 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

Denis Kolesnik <lirex.software at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #10 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-18 22:09:22 UTC ---
I'm sorry. That is my falut and the problem was that I overflowed variables
size causing undefined behaviour. Now I kwon what it is.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (9 preceding siblings ...)
  2012-08-18 22:09 ` lirex.software at gmail dot com
@ 2012-08-18 22:13 ` lirex.software at gmail dot com
  2012-08-18 22:16 ` lirex.software at gmail dot com
                   ` (8 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-18 22:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

Denis Kolesnik <lirex.software at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |

--- Comment #11 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-18 22:13:31 UTC ---
(In reply to comment #10)
> I'm sorry. That is my falut and the problem was that I overflowed variables
> size causing undefined behaviour. Now I kwon what it is.

sorry, this comment was for the bug 54180


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (10 preceding siblings ...)
  2012-08-18 22:13 ` lirex.software at gmail dot com
@ 2012-08-18 22:16 ` lirex.software at gmail dot com
  2012-08-18 22:18 ` redi at gcc dot gnu.org
                   ` (7 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-18 22:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #12 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-18 22:15:40 UTC ---
> > What exactly is your question and why do you think it's anything to do with
> > GCC?

that is one of my questions. Whether it is a GCC bug or PstgreSQL. Or even
againg my errors in my code.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (11 preceding siblings ...)
  2012-08-18 22:16 ` lirex.software at gmail dot com
@ 2012-08-18 22:18 ` redi at gcc dot gnu.org
  2012-08-19  0:45 ` lirex.software at gmail dot com
                   ` (6 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: redi at gcc dot gnu.org @ 2012-08-18 22:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE
           Severity|enhancement                 |normal

--- Comment #13 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-18 22:18:28 UTC ---
This line contains a bug:

strcpy(SQL1,"select id, ' ', regexp_replace(str_last_name,' ','') as lastname,
' ', regexp_replace(str_first_name,' ','') as firstname, ' ', age(dt_birth) as
age from tbl_owners_individual;");

SQL1 only has capacity for 150 chars, but you write more than 170 to it. This
is a serious bug in your program (not in GCC or postgresql).

When you use the "order by" clause you write even more characters to the array,
which is still a bug.

Either learn to use dynamically-allocated memory or ensure your arrays are big
enough to hold the strings you write to them.

This is the same issue as PR 54180

*** This bug has been marked as a duplicate of bug 54180 ***


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (12 preceding siblings ...)
  2012-08-18 22:18 ` redi at gcc dot gnu.org
@ 2012-08-19  0:45 ` lirex.software at gmail dot com
  2012-08-19  0:46 ` lirex.software at gmail dot com
                   ` (5 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-19  0:45 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

Denis Kolesnik <lirex.software at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|DUPLICATE                   |

--- Comment #14 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-19 00:44:57 UTC ---
(In reply to comment #13)
> This line contains a bug:
> 
> strcpy(SQL1,"select id, ' ', regexp_replace(str_last_name,' ','') as lastname,
> ' ', regexp_replace(str_first_name,' ','') as firstname, ' ', age(dt_birth) as
> age from tbl_owners_individual;");
> 
> SQL1 only has capacity for 150 chars, but you write more than 170 to it. This
> is a serious bug in your program (not in GCC or postgresql).
> 
> When you use the "order by" clause you write even more characters to the array,
> which is still a bug.
> 
> Either learn to use dynamically-allocated memory or ensure your arrays are big
> enough to hold the strings you write to them.
> 
> This is the same issue as PR 54180
> 
> *** This bug has been marked as a duplicate of bug 54180 ***

now my CHAR SQL1[350] as you see is 350 characters long, but the problem is the
same:

if I choose a filed from the combobox with the id 1 in the database table
the second query, which also ends with the clause "...order by
str_last_name..."
returns the field with the id 111(if I remember correct), but should with 1.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (13 preceding siblings ...)
  2012-08-19  0:45 ` lirex.software at gmail dot com
@ 2012-08-19  0:46 ` lirex.software at gmail dot com
  2012-08-19  0:51 ` lirex.software at gmail dot com
                   ` (4 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-19  0:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #15 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-19 00:45:56 UTC ---
(In reply to comment #13)
> This line contains a bug:
> 
> strcpy(SQL1,"select id, ' ', regexp_replace(str_last_name,' ','') as lastname,
> ' ', regexp_replace(str_first_name,' ','') as firstname, ' ', age(dt_birth) as
> age from tbl_owners_individual;");
> 
> SQL1 only has capacity for 150 chars, but you write more than 170 to it. This
> is a serious bug in your program (not in GCC or postgresql).
> 
> When you use the "order by" clause you write even more characters to the array,
> which is still a bug.
> 
> Either learn to use dynamically-allocated memory or ensure your arrays are big
> enough to hold the strings you write to them.
> 
> This is the same issue as PR 54180
> 
> *** This bug has been marked as a duplicate of bug 54180 ***

now my CHAR SQL1[350] as you see is 350 characters long, but the problem is the
same:

if I choose a field from the combobox with the id 1 in the database table
the second query, which also ends with the clause "...order by
str_last_name..."
returns the field with the id 111(if I remember correct), but should with 1.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (14 preceding siblings ...)
  2012-08-19  0:46 ` lirex.software at gmail dot com
@ 2012-08-19  0:51 ` lirex.software at gmail dot com
  2012-08-19  0:54 ` lirex.software at gmail dot com
                   ` (3 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-19  0:51 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

Denis Kolesnik <lirex.software at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #27972|0                           |1
        is obsolete|                            |

--- Comment #16 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-19 00:51:37 UTC ---
Created attachment 28047
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28047
a newer c++ source file


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (15 preceding siblings ...)
  2012-08-19  0:51 ` lirex.software at gmail dot com
@ 2012-08-19  0:54 ` lirex.software at gmail dot com
  2012-08-19 10:54 ` redi at gcc dot gnu.org
                   ` (2 subsequent siblings)
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-19  0:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #17 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-19 00:54:19 UTC ---
(In reply to comment #10)
> I'm sorry. That is my falut and the problem was that I overflowed variables
> size causing undefined behaviour. Now I kwon what it is.

sorry for my bad english - know


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (16 preceding siblings ...)
  2012-08-19  0:54 ` lirex.software at gmail dot com
@ 2012-08-19 10:54 ` redi at gcc dot gnu.org
  2012-08-19 18:16 ` lirex.software at gmail dot com
  2012-08-19 18:21 ` lirex.software at gmail dot com
  19 siblings, 0 replies; 21+ messages in thread
From: redi at gcc dot gnu.org @ 2012-08-19 10:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #18 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-08-19 10:54:13 UTC ---
Gcc cannot alter results of an SQL query, it's a bug in your program. This is
the wrong place to get help debugging your code.


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (17 preceding siblings ...)
  2012-08-19 10:54 ` redi at gcc dot gnu.org
@ 2012-08-19 18:16 ` lirex.software at gmail dot com
  2012-08-19 18:21 ` lirex.software at gmail dot com
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-19 18:16 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #19 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-19 18:15:49 UTC ---
(In reply to comment #18)
> Gcc cannot alter results of an SQL query, it's a bug in your program. This is
> the wrong place to get help debugging your code.

You are right: I consider now, that it is a PostgreSQL SQL bug.

limit 1 offset ... order byt str_last_name
filters data wrong...


^ permalink raw reply	[flat|nested] 21+ messages in thread

* [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a GCC error (combobox and SQL data sorting)
  2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
                   ` (18 preceding siblings ...)
  2012-08-19 18:16 ` lirex.software at gmail dot com
@ 2012-08-19 18:21 ` lirex.software at gmail dot com
  19 siblings, 0 replies; 21+ messages in thread
From: lirex.software at gmail dot com @ 2012-08-19 18:21 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214

--- Comment #20 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-19 18:21:08 UTC ---
sure: I found, that the bug is if I use "limit 1" clause.

It is surelly a bug.


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-08-19 18:21 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-09 20:11 [Bug c++/54214] New: (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or GCC error (combobox and SQL data sorting) lirex.software at gmail dot com
2012-08-09 20:15 ` [Bug c++/54214] " lirex.software at gmail dot com
2012-08-09 20:18 ` lirex.software at gmail dot com
2012-08-09 20:19 ` lirex.software at gmail dot com
2012-08-09 20:22 ` [Bug c++/54214] (corrected copyright notes in source file)please help to determine whether it is an PostgreSQL error or a " lirex.software at gmail dot com
2012-08-09 20:25 ` lirex.software at gmail dot com
2012-08-09 21:51 ` redi at gcc dot gnu.org
2012-08-16 22:38 ` lirex.software at gmail dot com
2012-08-18 21:20 ` lirex.software at gmail dot com
2012-08-18 21:41 ` lirex.software at gmail dot com
2012-08-18 22:09 ` lirex.software at gmail dot com
2012-08-18 22:13 ` lirex.software at gmail dot com
2012-08-18 22:16 ` lirex.software at gmail dot com
2012-08-18 22:18 ` redi at gcc dot gnu.org
2012-08-19  0:45 ` lirex.software at gmail dot com
2012-08-19  0:46 ` lirex.software at gmail dot com
2012-08-19  0:51 ` lirex.software at gmail dot com
2012-08-19  0:54 ` lirex.software at gmail dot com
2012-08-19 10:54 ` redi at gcc dot gnu.org
2012-08-19 18:16 ` lirex.software at gmail dot com
2012-08-19 18:21 ` lirex.software at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).