Commit Graph

519 Commits

Author SHA1 Message Date
mainzelm f2c4ddb44d Merged contents of time_dep1.c into time1.c.
There was nothing OS-specific left.
2003-05-01 18:11:48 +00:00
mainzelm c594e945d3 Merged contents of time_dep1.c into time1.c.
There was nothing OS-specific left.
2003-05-01 18:11:47 +00:00
eknauel fd4634e27f + outlined the support for SQLBindParameter() 2003-04-28 12:33:02 +00:00
sperber 35f1ddd533 Split scsh code into lots of modules.
Note that this change doesn't represent any sort of design suggestion
or decision:  It merely represents an attempt to codify the
dependencies between the parts of the code base.  There's still lots
of work to be done to actually make user-accessible modules.
2003-04-28 08:33:46 +00:00
eknauel 576420fd48 + fixed a bug in bindcol example (README)
+ export bindcol, removed odbc-bindcol.scm
2003-04-25 07:29:04 +00:00
eknauel 5f9eb17fed + fixed confusion of environment/connection handles 2003-04-24 14:51:20 +00:00
eknauel 8a40bfdc90 + fixed return values for odbc-sql-get-data 2003-04-24 13:30:38 +00:00
eknauel ad8131edad - rewrote exception handling system, pass ODBC status codes to Scheme
directly. This leads to multiple return values in some cases.

- new condition types

- raise conditions only in case of fatal errors

- rewrote odbc_sql_data_sources() and odbc_sql_drivers()

- removed hardcoded ODBC_RETVAL_BUFFER_INITIAL_SIZE, the return value
  buffer size can now be read/set from Scheme.

- removed odbc_sql_bind_parameter_exec_out(), which is a poor
  implementation of a SQLBindParameter() binding. TODO: make a
  better one.

- use the p.c. SQL_SUCCEEDED()

- rewrote odbc_sql_get_data(): Resize return buffer value if necessary

- new modules: low-odbc (functions), low-odbc-constants (constants)

- major code cleanup
2003-04-24 13:02:02 +00:00
mainzelm 750de51339 Let read-string/partial return "" on a vacuous request. 2003-04-22 16:29:45 +00:00
mainzelm c0b8928e7d Ensure argument to EXIT is an integer. 2003-04-22 15:56:20 +00:00
sperber 5c19731d59 Missed one 2-line IF in the last commit. 2003-04-16 13:02:19 +00:00
sperber a6978187ba Sanitize Olin's atrocious 2-line IF. 2003-04-16 13:01:32 +00:00
mainzelm 4f84e3cb99 Removed pause-until-interrupt. 2003-04-14 09:45:58 +00:00
mainzelm 87632c785e Renamed string-filter to make-string-port-filter and char-filter to
make-char-port-filter to avoid a name clash with SRFI-13/14.
2003-04-14 09:34:55 +00:00
mainzelm 0c61d18779 Release name for 0.6.4. 2003-04-14 09:33:27 +00:00
eknauel 9e0d68ad76 - fixed a really embarrasing bug introduced in the last version... 2003-03-31 08:04:28 +00:00
mainzelm 551f0a3ee2 Fixed bug in really-fork/pipe+: let-optionals already takes care of
optional arguments, no need to CAR any further.
2003-03-31 06:09:00 +00:00
eknauel f732ad9938 + Nothing but a noncommittal declaration of intent ;) 2003-03-29 12:47:03 +00:00
eknauel c9194d9ba7 + don't assume driver manager implementing API version >= 0x300
- removed functions
  s48_value odbc_sql_alloc_env()
  s48_value odbc_sql_alloc_connect(s48_value env_handle)
  s48_value odbc_sql_alloc_stmt(s48_value conn_handle)
+ For driver managers < 0x300
  s48_value odbc_alloc_environment_handle()
  s48_value odbc_alloc_connection_handle(s48_value env_handle)
  s48_value odbc_alloc_statement_handle(s48_value stmt_handle)
  call SQLAllocEnv(), SQLAllocConnect(), SQLAllocStmt() automatically
+ removed scheme functions
  odbc10-sql-alloc-env
  odbc10-sql-alloc-connect
  odbc10-sql-alloc-stmt
2003-03-29 12:42:21 +00:00
eknauel 2c1385f136 + fixed various bugs introduced in last version 2003-03-20 16:28:50 +00:00
eknauel 45dfc0fbde + use unified patch format 2003-03-20 16:04:23 +00:00
eknauel 975e08732e + added preliminary building and usage instructions for ODBC bindings 2003-03-19 15:49:42 +00:00
mainzelm e62510c4f1 + Catch and report errors
+ Use scheme-with-scsh
2003-03-14 09:02:05 +00:00
mainzelm e24932011f Include limits.h for the sake of Solaris which doesn't find
NGROUPS_MAX otherwise.
2003-03-13 10:51:57 +00:00
mainzelm 96ab618b28 Use load-port to implement -sfd switch. 2003-03-13 07:53:34 +00:00
mainzelm dca47f0da6 Fixed typo. 2003-03-10 13:46:38 +00:00
mainzelm 075630989e Make srfi-19 a functor and move the definition back to scheme/srfi. 2003-03-10 13:27:09 +00:00
sperber 1e1d44a497 In FORK, flush output ports inside the narrowed section, not before,
avoiding some, erm, pretty obvious race condition.
2003-03-07 13:38:07 +00:00
mainzelm df9c8bee6c Most of the tty procedures now again take file name arguments.
Made some arguments optional again.
2003-03-03 10:46:09 +00:00
mainzelm cc3f5b07bc Fixed typo in error message. 2003-03-03 09:43:17 +00:00
mainzelm e0b3cbd1b1 Small set of tests for strings and chars. 2003-02-25 13:20:13 +00:00
mainzelm 68072b171f Moved srfi-19.scm to scsh/. 2003-02-25 12:58:37 +00:00
mainzelm da76638c82 Added bind-prepare-listen-accept-loop. 2003-02-20 17:18:56 +00:00
mainzelm 673dbaffdb set-uid and set-gid change the effective uid as well. It is therefore
not only required to update the cache but also to set the thread-local value.
2003-02-20 17:13:55 +00:00
eknauel a1b0768745 Fixed let-optionals* in structure slow-simple-let-opt which caused the
macro to loop endlessly
2003-02-18 13:12:08 +00:00
sperber 6dcdd107e0 Clean up get_groups: don't ever allocate dynamically, and remove
potential trouble spot where it used to call itself recursively
without looking at the return value.
2003-02-17 16:06:20 +00:00
sperber 33c1b8fb0e GC some dead variables. 2003-02-17 16:05:26 +00:00
sperber 803b2b1034 Fix character sets containing both ] and -. 2003-02-17 10:56:22 +00:00
mainzelm c223eded17 In file-name-{sans-}extension, check whether the rightmost "." occurs within a directory name. 2003-02-10 07:26:18 +00:00
eknauel 87a29c59ab Even more constants from sqlext.h 2003-02-08 13:15:40 +00:00
eknauel 70ce7e3cc0 Scheme version of constants from sql.h 2003-02-07 16:25:02 +00:00
eknauel 3393eb232e Code for generating scheme-variables from sql.h's #defines 2003-02-07 16:23:33 +00:00
mainzelm 921bb20f23 Added forgotten with-resources-aligned to delete-directory,
read-symlink, set-file-times, and open-directory-stream.
2003-02-07 13:01:54 +00:00
sperber 8a936d2958 In time2date, return #f instead of "" for the time zone, if we want
the Scheme-side code to compute a numerical offset to UTC.
2003-01-28 13:11:10 +00:00
mainzelm b9eb4c055c Add switches to evaluate exec scripts. 2003-01-27 20:08:43 +00:00
mainzelm a5e76d4484 Bug fix for let-match: variables may be #f. 2003-01-23 17:18:08 +00:00
sperber 4a1c23a9bb Fix a bug in SEND-MESSAGE:
There is such a thing as an empty datagram; SEND-MESSAGE used to
ignore those.  Now force those to be sent as well.
2003-01-21 09:47:10 +00:00
mainzelm c0cccd7c7a My first post 0.6.3 fix: md5 is not opened by default and you cannot
load it later since the path is not translated.
2003-01-16 16:52:51 +00:00
sperber 00e8147657 I did it again:
only multiply timeout by 1000 if it's a number.
2003-01-14 13:21:31 +00:00
sperber 32953f94c0 It had to happen: the first post-0.6.3 bug fix.
The SELECT* operations take a timeout argument, specified to be in
seconds.  Instead, they took milliseconds.  Fix this.
2003-01-13 16:52:26 +00:00