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

From Robert Klemme <shortcutter@googlemail.com>
Newsgroups comp.databases.postgresql
Subject Re: all types returned in result are strings
Date 2018-04-09 23:17 +0200
Message-ID <fj23k5Fftb7U1@mid.individual.net> (permalink)
References <25ea1628-5aaf-4d3d-bc5e-cec51c0b6d84@googlegroups.com>

Show all headers | 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