Commit Graph

13 Commits

Author SHA1 Message Date
Andrzej J.R. Hunt
73720f9a83 Implement malloc'ing of date/time/timestamp (firebird-sdbc)
Change-Id: I22abb334a337ae2e25188ae43696789d37ecd7d4
2013-08-30 11:33:11 +01:00
Andrzej J.R. Hunt
3eddbbec43 SQL_FLOAT corresponds to DataType::FLOAT.
Change-Id: Id5e2aab669ba047e9ecb392187aae7c4aa384dda
2013-08-28 17:56:20 +01:00
Andrzej J.R. Hunt
c2602a4c2e Use correct type for SQL_FLOAT. (firebird-sdbc)
Change-Id: Ic27e886643128edeb5b2d5c81e86681f4dd8d33b
2013-08-28 17:56:20 +01:00
Andrzej J.R. Hunt
e0157dfec5 Simplify/improve sanitizeIdentifier usage. (firebird-sdbc)
Change-Id: Ic0f66cc68b49a2e9d9f9b8b139a479a7179cc08b
2013-08-21 11:29:43 +01:00
Andrzej J.R. Hunt
aca3d35a3b Free SQLVAR as appropriate. (firebird-sdbc)
Change-Id: I5742e178baa85f3faf80d95f57fed248f7984793
2013-08-15 20:31:14 +01:00
Andrzej J.R. Hunt
324388fd1c Trim sql identifiers as needed. (firebird-sdbc)
Change-Id: Ib61897ff2f5b459f5f6c75726be22ed99d383ec3
2013-08-14 17:24:56 +01:00
Andrzej J.R. Hunt
89fdead645 Correctly handle varchar. (firebird-sdbc)
Previously SQL_VARYING was cerced to SQL_TEXT which
loses the string length.

Change-Id: I5ab6c0ce2892dcb986282d6bf6fbb770b4fbafeb
2013-08-06 22:17:23 +02:00
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
76fc51223f Fix blr type conversion.
Change-Id: Ie2ed26110c944c27f767d818139d8526e278f33d
2013-07-22 11:04:05 +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