php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38619 SUM or AVG functions doesn't work in mysql Querys
Submitted: 2006-08-27 23:34 UTC Modified: 2006-09-05 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: superbaloo at gmail dot com Assigned:
Status: No Feedback Package: PDO related
PHP Version: 5.1.5 OS: Linux - Debian SID
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: superbaloo at gmail dot com
New email:
PHP Version: OS:

 

 [2006-08-27 23:34 UTC] superbaloo at gmail dot com
Description:
------------
When i try to execute this following query in mysql :
SELECT SUM(`count`)
FROM `table`
WHERE 1

It will result this error : SQLSTATE[HY000]: General error: 2036

I'm using MySQL - 5.0.24-Debian_1-log and PHP 5.1.6







Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-28 07:05 UTC] derick@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2006-09-05 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 20 18:00:03 2025 UTC