Commit Graph

5 Commits

Author SHA1 Message Date
Andrzej J.R. Hunt
43095140eb Cut identifier to correct length (firebird-sdbc).
Currently firebird returns table and column identifiers as being
93 chars long (rather than 31 as per spec), this leads to problems
with ALTER and DROP commands which are unable to deal with the incorrect
length. For now we simply discard the extra characters (which are
blank characters).

(SELECT and similar commands have been able to deal with the overlength
identifiers previously, which is why this hack wasn't required
beforehand.)

Change-Id: Ib6c984b5fc72dc4e326b3f8d36f6cbc4a3c9086a
2013-07-31 19:04:23 +02:00
Andrzej J.R. Hunt
61d4e32030 Make evaluateStatusVector a namespace function. (firebird-sdbc)
We're not in java after all...

Change-Id: I145fbd7adad5e03a7c9e7bcf28cb2f80ce40ba9e
2013-07-25 19:41:18 +02:00
Andrzej J.R. Hunt
291b87962d Move allocation of SQLVAR memory to Util (firebird-sdbc).
(Is also needed for allocating sqlin data in prepared statement.)

Change-Id: Id572ddbc582c709c8d361ca6e9a670fb8f2d2165
2013-07-22 18:03:27 +02:00
Andrzej J.R. Hunt
c729e75129 Add conversion of blr types to firebird SQL_ types.
Internally firebird uses blr_* types -- we encounter these values e.g.
when retrieving column metadata within RDB$FIELD_TYPE. These can
be converted to the firebird SQL_* types for use within the rest
of the driver as appropriate.

Change-Id: If9a9bc3c58d99a2f61f52faef6316e2d3451af1a
2013-07-22 11:04:05 +02:00
Andrzej J.R. Hunt
734a30a23d Move sqltype identification into Util (firebird-sdbc).
Change-Id: I2e3068bf46555fea63c62bc1abc8a467c588a8b5
2013-07-22 11:04:04 +02:00