Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #7283

Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768

From "M. Strobel" <sorry_no_mail_here@nowhere.dee>
Newsgroups comp.lang.php
Subject Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768
Date 2012-10-12 14:38 +0200
Message-ID <adqhadFl0tbU1@mid.uni-berlin.de> (permalink)
References <09ec6d1f-1a27-43ce-b385-938740b4ae87@googlegroups.com>

Show all headers | View raw


Am 12.10.2012 13:02, schrieb Jabber:
> Hi you all,
> 
> i'm using PHP 5.3.10 and Mysql 5.5.2.4, i execute this code:
> $result  = $conn->query( $sql ); // $sql is "SELECT * FROM mytable;"
> $headers = $result->fetch_fields();
> $id=$headers[0];
> echo ($id->flags & MYSQLI_NUM_FLAG ); // -> 32768
> echo ($id->flags & MYSQLI_GROUP_FLAG ); // -> 32768
> 
> I get the same number, i.d.  32768, is it a bug ?
> My table id ($headers[0]) is not part of a "GROUP BY" clause.
> 
> Do you know somethig about this behavior?
> 

Why don't you just do a var_dump() of id, and echo the constants you are using? I
can't test, I'm only using postgresql.

The result of a function always depends on the input...

/Str.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 Jabber <jabber2033@interfree.it> - 2012-10-12 04:02 -0700
  Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-10-12 14:38 +0200
    Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 Jabber <jabber2033@interfree.it> - 2012-10-12 06:38 -0700
      Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-10-12 17:12 +0200
    Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 Jabber <jabber2033@interfree.it> - 2012-10-12 07:55 -0700
      Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-10-12 17:56 +0200
        Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 Jabber <jabber2033@interfree.it> - 2012-10-12 09:23 -0700
          Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2012-10-12 23:55 +0200
    Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 Jabber <jabber2033@interfree.it> - 2012-10-12 07:57 -0700
    Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 Jabber <jabber2033@interfree.it> - 2012-10-12 07:59 -0700
  Re: MYSQLI_GROUP_FLAG and MYSQLI_NUM_FLAG are both 32768 Denis McMahon <denismfmcmahon@gmail.com> - 2012-10-13 01:47 +0000

csiph-web