[Bug c++/54291] New: why the value of the variable CHAR SQL_from_account[3] of is changed if it should not be changed?
lirex.software at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Aug 16 21:00:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54291
Bug #: 54291
Summary: why the value of the variable CHAR SQL_from_account[3]
of is changed if it should not be changed?
Classification: Unclassified
Product: gcc
Version: 4.6.1
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: lirex.software@gmail.com
Created attachment 28033
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28033
a c++ source file
2 SQL requests update fields of accounts table and one adds a payment into
bills table.
The requests are for PostgreSQL server using their native library.
As I add a transaction from 1001 to 1000 for the first time all is ok,
but for the second time the value of the variable(! according to the C language
syntax it is a variable even if it is a CHAR characters 1 dimenisional array)
SQL_from_account changes it value from 1001 to 1000(but it should not).
So if I press add(caption in cyrillic, but function names, etc are in english)
Why is this?
More information about the Gcc-bugs
mailing list