Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 589 by zhangchu...@gmail.com: python protobuf API doesn't return custom FieldOptions in ubuntu(fine in Mac)
http://code.google.com/p/protobuf/issues/detail?id=589

What steps will reproduce the problem?
1.define a proto

message SqlOptions {
  optional bool primary_key = 1;
  optional bool index = 2;
}

extend google.protobuf.FieldOptions {
  optional SqlOptions sql_options = 50000;
}

message Item {
  optional int32 id = 1 [(sql_options) = { primary_key : true}];
}

2. compile this proto and generate python source code

3. field_descriptor.GetOptions().ListFields() will return empty list in ubuntu, mac is fine.

What is the expected output? What do you see instead?
expect to return primary_key : true option

What version of the product are you using? On what operating system?
protoc --version
libprotoc 2.4.1

python lib: protobuf-2.5.0


Please provide any additional information below.


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to