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


Groups > comp.lang.php > #7295

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 17:56 +0200
Message-ID <adqst7FnneqU1@mid.uni-berlin.de> (permalink)
References <09ec6d1f-1a27-43ce-b385-938740b4ae87@googlegroups.com> <adqhadFl0tbU1@mid.uni-berlin.de> <3c21c005-9d9f-49a5-ac2c-54956ea98432@googlegroups.com>

Show all headers | View raw


Am 12.10.2012 16:55, schrieb Jabber:
> Here is var_dump of "id" field:
> 
> Object (
> |    name = String(2) "id"
> |    orgname = String(2) "id"
> |    table = String(4) "info_table"
> |    orgtable = String(4) "info_table"
> |    def = String(0) ""
> |    db = String(4) "gpro"
> |    catalog = String(3) "def"
> |    max_length = Integer(1) 2
> |    length = Integer(1) 4
> |    charsetnr = Integer(2) 63
> |    flags = Integer(5) 49667
> |    type = Integer(1) 2
> |    decimals = Integer(1) 0
> )
> 
> I've tried all mysqli flag constants (see http://php.net/manual/en/mysqli.constants.php) by bitwise operator ( $id & CONSTANT ),
> these are the flag constants returned not zero:
> MYSQLI_NOT_NULL_FLAG
> MYSQLI_PRI_KEY_FLAG
> MYSQLI_AUTO_INCREMENT_FLAG
> MYSQLI_PART_KEY_FLAG
> MYSQLI_NUM_FLAG
> MYSQLI_GROUP_FLAG
> 
> "id" fields of smallint type.

I found out this function maps directly to the C interface and a structure
MYSQL_FIELD I did not find, see
http://dev.mysql.com/doc/refman/5.5/en/mysql-fetch-fields.html

Maybe you find more interpretation in the C docs. So far we know that your findings
are correct.

/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