Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.postgresql > #820

Re: all types returned in result are strings

Path csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.databases.postgresql
Subject Re: all types returned in result are strings
Date Mon, 9 Apr 2018 23:17:56 +0200
Lines 14
Message-ID <fj23k5Fftb7U1@mid.individual.net> (permalink)
References <25ea1628-5aaf-4d3d-bc5e-cec51c0b6d84@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace individual.net y/xuSRqX4FexVkJnD/fUfQwTiVN+Nn2K2SjfJdrYsCOQkPrO0=
Cancel-Lock sha1:tJIe+/4rLd8eIchLTcBX42dG50Q=
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0
In-Reply-To <25ea1628-5aaf-4d3d-bc5e-cec51c0b6d84@googlegroups.com>
Content-Language de-DE
Xref csiph.com comp.databases.postgresql:820

Show key headers only | View raw


On 09.04.2018 19:11, Majid Lotfi wrote:
> Hi, I am using postgres from ruby using pg gem, I did a select * from
> table, but all integer, smallint, timestamp types are returned as
> strings.

Please show the code, maybe with the relevant part of the schema definition.

Kind regards

	robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

Back to comp.databases.postgresql | Previous | NextPrevious in thread | Find similar


Thread

all types returned in result are strings Majid Lotfi <akramakom@gmail.com> - 2018-04-09 10:11 -0700
  Re: all types returned in result are strings Robert Klemme <shortcutter@googlemail.com> - 2018-04-09 23:17 +0200

csiph-web