Commit Graph

24 Commits (c228aaf836e01831e23a35577cfe6c2d8b013f5c)

Author SHA1 Message Date
John Benediktsson f8de0c1caa db.sqlite: make sure select-tuple throws sql-table-missing etc. 2019-01-03 12:39:37 -08:00
Björn Lindqvist b17590db24 calendar.*: replacing hms>timestamp and timestamp>hms with duration variants
hms>duration is better because a timestamp without a date is
invalid. This also makes it so the SQL TIME column maps to duration. Now
we can add some validation so that you aren't allowed to create invalid
timestamps.
2017-01-05 12:38:05 +01:00
Björn Lindqvist 2895d5e095 calendar.format: moving parsing words to a new vocab calendar.parser
The vocab was getting big so the idea is to have all the time parsing in
calendar.parsing and only keep formatting words in calendar.format.
2017-01-04 08:50:24 +01:00
Doug Coleman 858c9b3a96 db.sqlite: Fix NULL returns for INTEGER columns in sqlite
The api for getting integer/double columns from sqlite3 returns a zero, but the value could still be NULL, so an extra api check for the sqlite type is required.

Fixes #1674.
2016-07-22 08:20:56 -07:00
John Benediktsson e477f6996f Fix comments to be ! not #!. 2015-09-08 16:15:10 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
Doug Coleman eeb7cf508f db.sqlite: fix ERROR: 2015-08-13 00:18:29 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson 6c4ba923ae db.sqlite.lib: fixing sqlite-row word. 2010-08-13 14:23:05 -07:00
Slava Pestov 446ee6896d alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary 2010-07-16 17:32:05 -04:00
Slava Pestov 70a99e1cdb Updating code to use with-out-parameters 2010-05-23 03:07:47 -04:00
Slava Pestov 7846074b3b db: update for ERROR: change 2010-02-03 23:11:31 +13:00
Slava Pestov ffd7de02d6 Update a few places that used string C type names to use words; fixes some deploy tests 2009-11-20 03:21:48 -06:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
sheeple d6d89e0a40 add parsing for postgresql errors and some unit tests 2009-02-21 21:22:51 -06:00
Doug Coleman a61bac7ab5 fix sqlite foreign triggers create/delete bug
ignore-errors only if there is a sql spec defined for the class until database-specific errors are implemented
2009-02-19 18:26:11 -06:00
Doug Coleman 4dd615fa9e Merge branch 'master' of git://factorcode.org/git/factor
Conflicts:
	basis/db/types/types.factor
2008-12-17 21:07:42 -06:00
Doug Coleman 2c678e64dc rename db symbol -> db-connection 2008-12-17 21:04:17 -06:00
Doug Coleman 4329578b2f add a new db-connection tuple for live database connections instead of reusing the db setup tuple
update sqlite and postgresql backends for the change
2008-12-17 19:35:53 -06:00
Slava Pestov 34792a9f23 Remove >r/r> 2008-12-17 19:17:37 -06:00
Doug Coleman 3dc417ae64 bool -> ? 2008-12-11 18:52:22 -06:00
Doug Coleman 93e84d7bcd fix some database issues - sqlite booleans, >>group and >>order don't require arrays now, they can be passed strings for a single order or group by 2008-10-18 15:15:27 -05:00
Slava Pestov c19f2257f4 Fix permission bits 2008-10-02 08:34:49 -05:00
Doug Coleman c30a6511d1 move db to basis 2008-09-02 18:26:31 -05:00