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

invalid operation #19

Closed
Albus opened this issue Dec 12, 2018 · 1 comment
Closed

invalid operation #19

Albus opened this issue Dec 12, 2018 · 1 comment

Comments

@Albus
Copy link

Albus commented Dec 12, 2018

command-line-arguments

/tmp/plgo197184652/pl.go: In function ‘jsonb_to_datum’:
/tmp/plgo197184652/pl.go:148:17: warning: implicit declaration of function ‘DatumGetJsonb’; did you mean ‘DatumGetJsonbP’? [-Wimplicit-function-declaration]
return (Datum) DatumGetJsonb(DirectFunctionCall1(jsonb_in, (Datum) (char *) val));
^~~~~~~~~~~~~
DatumGetJsonbP
/tmp/plgo197184652/pl.go: In function ‘datum_to_jsonb_cstring’:
/tmp/plgo197184652/pl.go:226:17: warning: initialization of ‘Jsonb *’ {aka ‘struct *’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
Jsonb *jsonb = DatumGetJsonb(val);
^~~~~~~~~~~~~

command-line-arguments

/tmp/plgo197184652/pl.go:347:171: cannot convert _Ciconst_true (type untyped number) to type _Ctype__Bool
/tmp/plgo197184652/pl.go:347:171: invalid operation: (func literal)() == _Ciconst_true (mismatched types _Ctype__Bool and int)
/tmp/plgo197184652/pl.go:400:51: cannot convert _Ciconst_true (type untyped number) to type _Ctype__Bool
/tmp/plgo197184652/pl.go:400:51: invalid operation: _Cfunc_trigger_fired_before(td.tgEvent) == _Ciconst_true (mismatched types _Ctype__Bool and int)
/tmp/plgo197184652/pl.go:405:50: cannot convert _Ciconst_true (type untyped number) to type _Ctype__Bool
/tmp/plgo197184652/pl.go:405:50: invalid operation: _Cfunc_trigger_fired_after(td.tgEvent) == _Ciconst_true (mismatched types _Ctype__Bool and int)
/tmp/plgo197184652/pl.go:410:52: cannot convert _Ciconst_true (type untyped number) to type _Ctype__Bool
/tmp/plgo197184652/pl.go:410:52: invalid operation: _Cfunc_trigger_fired_instead(td.tgEvent) == _Ciconst_true (mismatched types _Ctype__Bool and int)
/tmp/plgo197184652/pl.go:415:52: cannot convert _Ciconst_true (type untyped number) to type _Ctype__Bool
/tmp/plgo197184652/pl.go:415:52: invalid operation: _Cfunc_trigger_fired_for_row(td.tgEvent) == _Ciconst_true (mismatched types _Ctype__Bool and int)
/tmp/plgo197184652/pl.go:415:52: too many errors
Cannot build package: exit status 2

@microo8
Copy link
Owner

microo8 commented Feb 23, 2019

Solved. Try updating plgo (go get -u github.com/microo8/plgo/...)

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

2 participants