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: [email protected]
ReportedBy: [email protected]
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?