php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20962 ibase_query don't work with varchar character set win1251
Submitted: 2002-12-12 10:14 UTC Modified: 2002-12-14 09:58 UTC
From: hristo at teacher dot com Assigned:
Status: Not a bug Package: InterBase related
PHP Version: 4.2.3 OS: win 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: hristo at teacher dot com
New email:
PHP Version: OS:

 

 [2002-12-12 10:14 UTC] hristo at teacher dot com
CREATE TABLE CATEGORIES (
    CAT_ID INTEGER NOT NULL,
    CYR_TEXT VARCHAR (100) character set WIN1251);		
<?php
$any_cyrilic_text = '????? ?? ????????';
$update_stmt = "update categories set cyr_text='".$any_cyrilic_text."' where cat_id=".$edit_id;

ibase_query($db_link, $update_stmt);
?>

after executing this code

Warning: InterBase: arithmetic exception, numeric overflow, or string truncation Cannot transliterate character between character sets


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-12-12 11:14 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-12-14 09:52 UTC] hristo at teacher dot com
I'm sorry, but I fix my mistake.

$db_con = ibase_connect($HOST:$DB_PATH, $USER, $PASS, 'win1251');

not 
$db_con = ibase_connect($HOST:$DB_PATH, $USER, $PASS);

and it's OK
 [2002-12-14 09:58 UTC] derick@php.net
bogus then
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 11:01:30 2024 UTC