Displaying 9 results from an estimated 9 matches for "connect_string".
2001 Oct 18
1
Patch for SSH-tunneling via HTTPS-proxy
...ill handle results from the proxy
+ *
+ * this nice patch was brought to you by Leif Jakob <openssh at jakob.weite-welt.com>, don't blame me
+ * if someone is abusing your misconfigured proxies :) but some broken firewalls require this feature
+ */
+void
+https_proxy_handshake(const char *connect_string)
+{
+ int connection_out = packet_get_connection_out();
+
+#define PROXY1 "CONNECT "
+#define PROXY3 " HTTP/1.0\r\n\r\n"
+
+ if (atomicio(write, connection_out, PROXY1, sizeof(PROXY1)-1) != sizeof(PROXY1)-1)
+ fatal("write proxy1: %.100s", strerror(errno));
+
+ i...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...multi_pgsql_sync_transaction_query *qry,
+ struct multi_pgsql_transaction_context *x_ctx)
+{
+ init_transaction_query(&qry->super,
+ &sync_transaction_query_vtable, x_ctx);
+}
+
+/** pgc (connection) code */
+struct multi_pgsql_pgc {
+ struct multi_pgsql_pgc *p;
+
+ char *connect_string;
+ PGconn *pgc;
+ PGresult *pgr;
+ struct multi_pgsql_db *pgdb;
+ struct multi_pgsql_query *qry;
+ struct io *io;
+ struct timeout *timeout;
+};
+
+/*** misc */
+static void start_pgc_connect(struct multi_pgsql_pgc *);
+
+static void init_pgc(struct multi_pgsql_pgc *pgc,
+ struct multi_pgsql...
2010 Feb 06
0
I can only halfway connect to oracle
Gurus...
If I set up my project to use SQLite (so it can come up) and attempt to
connect to oracle via:
oracle_connect = $application_properties[$connect_string]
oracle_conn = OCI8.new(oracle_id, oracle_password, oracle_connect)
where oracle_connect equals ''//bobs.big.boy.gov:1521/D09'' (with or w/o
the introductory //) my rails app connect to the oracle database just
fine.
If I convert my database.yml file to point to oracle however wit...
2019 May 19
3
Dict issue with PostgreSQL for last_login plugin (duplicate key)
On 19/05/2019 20:31, mabi via dovecot wrote:
>
> ??????? Original Message ???????
> On Sunday, May 19, 2019 7:36 PM, John Fawcett via dovecot
> <dovecot at dovecot.org> wrote:
>>
>> Attached is a tentative patch. I've verified no regression for mysql.
>> There should be no regression for sqlite as the code path is identical.
>>
>> Are you able to
2019 May 19
0
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...*) prep_stmt_hash;
bool has_on_duplicate_key:1;
+ bool has_on_conflict_do_update:1;
};
#endif
--- dict-sql.c.orig 2019-05-19 18:58:02.435194691 +0200
+++ dict-sql.c 2019-05-19 19:17:52.613253822 +0200
@@ -105,8 +105,10 @@
i_zero(&sql_set);
sql_set.driver = driver->name;
sql_set.connect_string = dict->set->connect;
- /* currently pgsql and sqlite don't support "ON DUPLICATE KEY" */
+ /* pgsql and sqlite don't support "ON DUPLICATE KEY" */
+ /* mysql and sqlite don't support "ON CONFLICT DO UPDATE" */
dict->has_on_duplicate_key = strcmp...
2009 Feb 03
1
Segfault in deliver server
..., idx=0) at array.c:10
10 pos = idx * array->element_size;
(gdb) bt
#0 array_idx_modifiable_i (array=0x38, idx=0) at array.c:10
#1 0x0805e9a2 in sql_pool_unlink (ctx=0x80fb670) at sql-pool.c:64
#2 0x0805ea24 in sql_pool_new (pool=0x80f9470, db_driver=0x80dd498 "sqlite", connect_string=0x810ad78 "/kolab/var/dovecot/lib/metadata-dict.sqlite")
at sql-pool.c:97
#3 0x0805bb3c in sql_dict_init (driver=0x80f9ae0, uri=0xbfce9f76 "/kolab/etc/dovecot/metadata-dict.conf", value_type=DICT_DATA_TYPE_STRING,
username=0x80fb910 "4 at burlywood3.rgb") at...
2019 May 19
2
Dict issue with PostgreSQL for last_login plugin (duplicate key)
On 19/05/2019 16:25, John Fawcett via dovecot wrote:
> INSERT INTO last_logins (last_login,username,domain) VALUES (1558273000,'user at domain.tld','domain.tld')
I don't have PostgresSql, would you be able to verify if this syntax would work:
INSERT INTO last_logins (last_login,username,domain) VALUES (1558273000,'user at domain.tld','domain.tld')
2019 May 19
2
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...*) prep_stmt_hash;
bool has_on_duplicate_key:1;
+ bool has_on_conflict_do_update:1;
};
#endif
--- dict-sql.c.orig 2019-05-19 18:58:02.435194691 +0200
+++ dict-sql.c 2019-05-19 19:17:52.613253822 +0200
@@ -105,8 +105,10 @@
i_zero(&sql_set);
sql_set.driver = driver->name;
sql_set.connect_string = dict->set->connect;
- /* currently pgsql and sqlite don't support "ON DUPLICATE KEY" */
+ /* pgsql and sqlite don't support "ON DUPLICATE KEY" */
+ /* mysql and sqlite don't support "ON CONFLICT DO UPDATE" */
dict->has_on_duplicate_key = strcmp...
2019 May 19
4
Dict issue with PostgreSQL for last_login plugin (duplicate key)
...*) prep_stmt_hash;
bool has_on_duplicate_key:1;
+ bool has_on_conflict_do_update:1;
};
#endif
--- dict-sql.c.orig 2019-05-19 18:58:02.435194691 +0200
+++ dict-sql.c 2019-05-20 00:25:56.558251260 +0200
@@ -105,8 +105,10 @@
i_zero(&sql_set);
sql_set.driver = driver->name;
sql_set.connect_string = dict->set->connect;
- /* currently pgsql and sqlite don't support "ON DUPLICATE KEY" */
+ /* pgsql and sqlite don't support "ON DUPLICATE KEY" */
+ /* mysql and sqlite don't support "ON CONFLICT DO UPDATE" */
dict->has_on_duplicate_key = strcmp...