Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TABLE_project ERROR: function return row and query-specified return row do not match #23

Closed
amutu opened this issue Mar 18, 2014 · 1 comment

Comments

@amutu
Copy link

amutu commented Mar 18, 2014

when use in the From Clause,the TBLE_project get error:
postgres=# select * from samp3_project(samp3_get());
NOTICE: IMCS command: project
ERROR: function return row and query-specified return row do not match
DETAIL: Returned type bigint at ordinal position 1, but query expects timestamp without time zone.

while run the function as select list, it is ok:
postgres=# select samp3_project(samp3_get());
NOTICE: IMCS command: project

samp3_project

(631950263,2191a6ae264f1058fb01a0084a73b509,"2014-02-23 00:00:07")
(294969415,dc8028c36369b682d695c360f19ccf17,"2014-02-23 00:00:07")
(778660501,31eae0cfda948b3c3852c5cbf2e63659,"2014-02-23 00:00:07")
...

this also OK:
postgres=# select samp3_project(t) from samp3_get() as t;
NOTICE: IMCS command: project

samp3_project

(631950263,2191a6ae264f1058fb01a0084a73b509,"2014-02-23 00:00:07")
(294969415,dc8028c36369b682d695c360f19ccf17,"2014-02-23 00:00:07")
(778660501,31eae0cfda948b3c3852c5cbf2e63659,"2014-02-23 00:00:07")
(667438543,f2dbd4d6a989ba4f539a661a4212458f,"2014-02-23 00:00:07")
...

@amutu
Copy link
Author

amutu commented Mar 18, 2014

sorry for the noise,this has been fixed by the 9a2c261

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant