Bug #16251 Missing features needed for implementing Phalanger extension
Submitted: 6 Jan 2006 14:19 Modified: 5 Nov 2007 21:42
Reporter: Tomas Matousek Email Updates:
Status: Won't fix Impact on me:
None 
Category:Connector / NET Severity:S4 (Feature request)
Version:latest OS:Windows (WinXP)
Assigned to: CPU Architecture:Any

[6 Jan 2006 14:19] Tomas Matousek
Description:
I'm implementing MySQL managed extension to our Phalanger .NET PHP compiler (http://php-compiler.net) and missing some features from MySQL Connector.
The main problem is how to get field flags (MySQL C function mysql_field_flags) from data reader. When I look to your source codes, it seems to be sufficient to make ColumnFlags enumeration public and add method GetFieldFlags to MySqlDataReader as follows:

public sealed class MySqlDataReader : ...
{
  ...
  public ColumnFlags GetFieldFlags(int i)
  {
    return fields[i].Flags;
  }
  ...	
}

Please, could you consider adding this method?
Thanks.

How to repeat:
-
[6 Jan 2006 14:27] Tomas Matousek
Correction: there is no mysql_field_flags C function in the native client, I meant PHP function mysql_field_flags.
[27 Jan 2006 15:00] Tomas Matousek
Is there anybody reading the requests?
[5 Nov 2007 21:42] Reggie Burnett
Sorry this one got missed.  You need to be using MySqlDatareader.GetSchemaTable to get this information.