works identity with other type than INT?
Tomasz Dreßler <[email protected]> Wed, 12 May 2004 18:50:36 +0200
| Newsgroups | gmane.comp.lib.sql.sqlpp |
|---|---|
| Message-ID | <[email protected]> |
Halo!
I use sqlpp with a big database now.
I won lots of time with sqlpp. :)
I hava a short question.
Is it possible to use type="SMALLINT" for primary key in combination
with auto increment?
When I am use the following table definition
<table id="ZahlungArt" name="ZahlungArt" field-prefix="ZahlungArt"
qualifier="" fixed="false" signed="false" suffix="">
<field id="ZahlungArtID" name="ID" type="SMALLINT"
primary-key="true" />
<identity field-id="ZahlungArtID" start="1" step="1" />
</table>
I get this error:
ZahlungArtDB.cs(62,31): error CS0029: implizite convert from type 'int'
to 'short' is not possible.
Of couse I can life with this behaviour. :)
But maybe it is a bug.
Tomek
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3