Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

Add support for guids with MySql #106

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create a table with varchar(36) and make primary key
2. the id generator will be "assigned"
3.

What is the expected output? What do you see instead?

It would be nice if varchar(36),char(36) or char(16) binary would be 
recognized as guid primary key. and the generator would be set correctly

Please use labels and text to provide additional information.

Original issue reported on code.google.com by mvh...@gmail.com on 9 Jun 2009 at 3:16

GoogleCodeExporter commented 9 years ago
We cannot make these assumptions.  We can only use the types defined my MySql.  
You can 
add code to your templates that make this assumption.

Original comment by shannon....@gmail.com on 12 Jun 2009 at 3:57