php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #647 Date field truncation /error
Submitted: 1998-08-12 16:38 UTC Modified: 1998-08-13 16:33 UTC
From: asengupt at cs dot indiana dot edu Assigned:
Status: Closed Package: Sybase (dblib) related
PHP Version: 3.0.2a OS: Sunos 5.6 (Solaris)
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: asengupt at cs dot indiana dot edu
New email:
PHP Version: OS:

 

 [1998-08-12 16:38 UTC] asengupt at cs dot indiana dot edu
the following script will truncate the date field. foo is a table with a date field in it, say the first field. Larger tables result in "document contains no data".

<html> <head>
<title>Test</title>
</head>

<body>
<h1>Test</h1>

<?
    PutEnv("SYBASE=/l/sybase");
    $di=sybase_connect("server", "username", "password");
    $di=sybase_select_db("db");
    /* send the SQL request */
    $ri=sybase_query("select * from foo");
    while ($crow = sybase_fetch_row($ri)) {
      echo "$crow[0]<br>\n";
    }
?>
</body> </html>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-08-13 16:33 UTC] zeev
Should be fixed now.  Please check out 3.0.3
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 16:01:28 2024 UTC