Neil Conway
4802bb57a6
Warning cleanups for ecpg tests. Avoid doing pointer arithmetic on void *,
...
remove old-style function declarations, and mark a function "static".
There are some remaining warnings, but this fixes most of them, anyway.
2005-06-30 07:08:59 +00:00
Neil Conway
175c25a404
Fix ecpg's test/ Makefile for out-of-tree (vpath) builds.
2005-06-30 07:01:57 +00:00
Tom Lane
6f7fc0bade
Cause initdb to create a third standard database "postgres", which
...
unlike template0 and template1 does not have any special status in
terms of backend functionality. However, all external utilities such
as createuser and createdb now connect to "postgres" instead of
template1, and the documentation is changed to encourage people to use
"postgres" instead of template1 as a play area. This should fix some
longstanding gotchas involving unexpected propagation of database
objects by createdb (when you used template1 without understanding
the implications), as well as ameliorating the problem that CREATE
DATABASE is unhappy if anyone else is connected to template1.
Patch by Dave Page, minor editing by Tom Lane. All per recent
pghackers discussions.
2005-06-21 04:02:34 +00:00
Michael Meskes
2d5d691d15
- Fixed memory leak in ecpglib by adding some missing free() commands.
...
- Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
2005-06-02 12:35:11 +00:00
Bruce Momjian
020ec1629b
Fix syntax error by adding a space.
2004-08-04 16:02:08 +00:00
Michael Meskes
073f7312a4
- Fixed indicator in SET DESCRIPTOR.
...
- Added special handling of descriptor header information.
- Some code cleanup.
2004-07-05 09:45:54 +00:00
Michael Meskes
8715789928
Made sure SET DESCRIPTOR accepts all data types including constants.
2004-07-04 15:02:24 +00:00
Michael Meskes
90326c01c9
Added SET DESCRIPTOR command.
...
Note that this still has some bugs. The functionality is there though, it's just a matter of fixing the bugs now.
Cleaned up error handling in preprocessor.
2004-06-30 15:01:58 +00:00
Michael Meskes
e48cfacb84
Arrays can be read as arrays or as character strings now.
2004-06-28 11:47:42 +00:00
Michael Meskes
2b55612645
- Added additional test case.
...
- Fixed bug that reversed string length in typedefs.
- Added portability file to pgtypeslib.
2004-05-07 13:42:49 +00:00
Bruce Momjian
4a73eb5ab1
Minor adjustments to enable public-domain timezone library to be called
...
from our code.
2004-04-30 04:14:06 +00:00
Bruce Momjian
45fbab2933
Make thread flags CFLAGS, not CPPFLAGS.
2004-04-25 20:57:32 +00:00
Bruce Momjian
7a66015e98
Add new auto-detection of thread flags.
...
Allow additional thread flags to be added via port templates.
Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new
configure script.
2004-04-23 18:15:55 +00:00
Bruce Momjian
8526f537cc
The "cvs add" of test_thread_implicit.pgc seems to have been missed,
...
i've attached this again.
Additionally I include a small patch to remove mutex locking when a
DEFAULT/NULL connection is being retrieved. This is consistent with
libpq.
Lee Kindness
2004-03-15 16:27:43 +00:00
Michael Meskes
757fb0e5a9
- Fixed Informix compat math functions to cope with the situations
...
where one argument takes the result.
- Applied thread patches by Lee Kindness
2004-03-14 12:16:30 +00:00
Bruce Momjian
5cecb734a7
Fix ecpg test program to properly access int* null indicator.
2004-01-13 01:32:52 +00:00
Bruce Momjian
85f51dea1c
Supress ecpg thread test if configure didn't enable threads. Fix
...
tools/thread to run even if configure didn't enable threads because this
test is used before enabling threads for the OS.
2003-12-19 23:29:15 +00:00
PostgreSQL Daemon
55b113257c
make sure the $Id tags are converted to $PostgreSQL as well ...
2003-11-29 22:41:33 +00:00
PostgreSQL Daemon
969685ad44
$Header: -> $PostgreSQL Changes ...
2003-11-29 19:52:15 +00:00
Michael Meskes
84b35a7f76
Added missing "commit" in test case.
2003-10-12 15:19:46 +00:00
Bruce Momjian
227dd9b427
Rename thread compile flag. Move thread test program to tools/thread,
...
and improve tests.
2003-09-27 15:32:48 +00:00
Michael Meskes
22c0b1f0f4
- Fixed order mismatch in processing "using" arguments.
...
- Fixed some minor things in test cases.
- Use defines for Informix error codes.
2003-09-22 13:19:39 +00:00
Michael Meskes
fcdf0e22fc
- Added Dave patch for Informix handling of numeric/int conversion.
...
- Changed all new datatypes to lowercase.
- Fixed rounding bug in numerical types.
2003-09-09 10:46:42 +00:00
Bruce Momjian
1709fde56a
Improve prototype casting for thread calls.
2003-09-05 01:53:41 +00:00
Michael Meskes
47a4e2ed1c
Fixed connect statement with username in variable.
2003-08-26 16:09:02 +00:00
Bruce Momjian
e060701f51
Clean up function header.
2003-08-07 23:43:32 +00:00
Bruce Momjian
d8295603c8
Make table column type TEXT.
2003-08-07 16:37:31 +00:00
Bruce Momjian
697f9f09ed
Add iteration option to thread test program.
2003-08-07 16:14:03 +00:00
Bruce Momjian
00c11039d4
Update ecpg thread testing program to be more automated.
2003-08-07 05:12:00 +00:00
Bruce Momjian
149f01c4d4
Add ecpg thread testing file.
2003-08-06 02:19:51 +00:00
Peter Eisentraut
4f7df90db0
Make ecpg SQLSTATE-aware. Map existing SQLCODE assignments to SQLSTATEs,
...
rather than parsing the message. Add some documentation about embedded
SQL.
2003-08-01 13:53:36 +00:00
Michael Meskes
7a9c074cba
- Added some Informix error codes in Informix mode.
...
- Added just another pgtypeslib function.
2003-08-01 08:21:04 +00:00
Michael Meskes
6a0d6d0060
Added explicit casts for date/interval/timestamp.
2003-07-25 16:10:26 +00:00
Michael Meskes
060229b9d7
Fixed mdy functions to use correct offset.
2003-07-24 08:41:07 +00:00
Michael Meskes
42df5e311f
Started to create different error codes for different backend messages.
2003-07-15 12:38:38 +00:00
Michael Meskes
e895eb197d
- Synced preproc.y with gram.y
...
- Init sqlca in ECPGprepare().
- Added CLOSE DATABASE for Informix compatibility.
2003-07-14 10:16:45 +00:00
Michael Meskes
f207718b0c
More informix fixes.
2003-07-08 12:11:35 +00:00
Michael Meskes
c7fddd3072
date, interval and timestamp data should be quoted.
2003-07-04 12:00:52 +00:00
Michael Meskes
23e4fc18a7
Fixed informix behaviour for select without into.
2003-07-04 11:30:48 +00:00
Michael Meskes
2bdd2e5dcf
Use ISO dates in pgtypeslib by default.
...
Applied patch by Philip Yarra to fix some thread issues.
Added a new data type "decimal" which is mostly the same as our
"numeric" but uses a fixed length array to store the digits. This is
for compatibility with Informix and maybe others.
2003-07-01 12:40:52 +00:00
Michael Meskes
cf883ea95c
- Made sure Informix style decimal vars are initialized. They use a
...
fixed amount of digits and not an allocated one. So we have to work
around. PostgreSQL numeric type remains the same.
- In INFORMIX_SE mode with autcommit set, make all cursors be "with
hold". Is this really they way SE behaves?
2003-06-29 16:52:58 +00:00
Michael Meskes
4505653e54
Added just another compatibility level for Informix.
2003-06-26 11:37:05 +00:00
Michael Meskes
fd3ca524eb
Implemented Informix special way to treat NULLs, removed warnings, synced.
2003-06-25 10:44:21 +00:00
Michael Meskes
2cbaaee6c3
Just another Informix compatibility change. They uses "free" for cursors as wellafter closing them.
2003-06-20 13:36:34 +00:00
Michael Meskes
abd310a3b1
Allow constants in using clauses.
2003-06-20 12:00:59 +00:00
Michael Meskes
26188e8c17
- Enable FETCH without INTO.
...
- Compatibility functions for INFORMIX handling of DECLARE statement.
2003-06-13 10:50:58 +00:00
Michael Meskes
a0fed291dc
Sync and some minor cleanup/fixing work plus an EXEC SQL DESCRIBE prototype.
2003-05-30 08:39:01 +00:00
Michael Meskes
196d0dd10b
Changed variable parsing so struct[n].attr works.
2003-05-29 13:59:26 +00:00
Michael Meskes
813d9960d2
Forgot these.
2003-05-23 15:22:38 +00:00
Michael Meskes
d03a067ba0
ecpg now recognizes named structs/unions. So you don't have to list the whole definition everytime you declare a variable anymore.
2003-05-22 07:58:45 +00:00