Search Postgresql Archives

Re: Sample in documentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Igor Korot <ikorot01@xxxxxxxxx> writes:
> I tried to implement the code found in
> https://www.postgresql.org/docs/current/static/libpq-example.html.
> ...
> I am getting an error:
> [quote]
> Non-constant-expression cannot be narrowed from type 'size_t' (aka
> 'unsigned long') to 'int' in initializer list
> [/quote]
> on the line that tries to create a length[2] array.
> 
> Now I should probably change it to "size_t length{2}" instead of "int
> length[2]", but
> I feel that this should be changed in the documentation.

I do not see any arrays named "length", nor even any arrays of size 2,
on that page, so I'm pretty confused what you're talking about.  Please
be more specific.

			regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux