On 12-Jul-01 Christian Terboven wrote:
> Hi all!
>
> I`ve got a quite strange problem.
> When querying my database, all my integer values are exactly 48 too high.
>
>
>
> Assuming the following code (using Linux):
>
> Database layout:
> (ID INT, Name CHAR(100), ...)
>
> m_pResult = mysql_store_result(&m_Connection);
> // get the first record
> m_iCurrentDataset = 0;
> mysql_data_seek(m_pResult, m_iCurrentDataset);
> MYSQL_ROW Row;
> Row = mysql_fetch_row(m_pResult);
>
> cout << "ID: " << *Row[0]; // it returns
"48 too much"
> cout << "Name: " << (char *) Row[1]; // works fine
>
>
> Has anybody an idea?
>
>
like 0 => 48 , 1=> 49, 2 => 50, ... ?
man ascii
Regards,
--
Don Read [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php