|
|
Sponsor |
Re: ODBC int2 parameters to pg function: msg#00044db.postgresql.odbc
Gary Doades <gpd@xxxxxxxxx> writes: > I have delcared a pg function as: > function GENERATE_TIMESHEETS(timestamp,timestamp,smallint,smallint) > .... You're probably best off to declare the inputs as integer not smallint. Integer literals are assumed to be int4 by default, and since there's no implicit downcast to int2 (anymore), writing a function this way will require you to cast to smallint explicitly a lot. It's seldom worth that notational hassle. You can cast inside the function if you really need the values to be int2 inside it. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | ODBC int2 parameters to pg function, Gary Doades |
|---|---|
| Next by Date: | Re: ERROR: column "ctid" does not exist, Shachar Shemesh |
| Previous by Thread: | ODBC int2 parameters to pg function, Gary Doades |
| Next by Thread: | Re: ODBC int2 parameters to pg function, Gary Doades |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|