File tree 2 files changed +14
-4
lines changed
2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -1864,6 +1864,11 @@ Mon Sep 27 11:05:49 CEST 2004
1864
1864
1865
1865
- Synced parser.
1866
1866
- Removed Oracle transaction syntax to fix shift/reduce error.
1867
+
1868
+ Tue Oct 5 12:45:48 CEST 2004
1869
+
1870
+ - '::' is no longer interpreted as a variable in a prepare statement.
1871
+ Added patch by Daniel Verite to fix this.
1867
1872
- Set ecpg version to 3.2.0.
1868
1873
- Set compat library version to 1.2.
1869
1874
- Set ecpg library version to 4.2.
Original file line number Diff line number Diff line change 1
- /* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.12 2004/05/21 13:50:12 meskes Exp $ */
1
+ /* $PostgreSQL: pgsql/src/interfaces/ecpg/ecpglib/prepare.c,v 1.13 2004/10/05 10:48:37 meskes Exp $ */
2
2
3
3
#define POSTGRES_ECPG_INTERNAL
4
4
#include "postgres_fe.h"
@@ -46,9 +46,14 @@ replace_variables(char *text)
46
46
47
47
if (!string && * ptr == ':' )
48
48
{
49
- * ptr = '?' ;
50
- for (++ ptr ; * ptr && isvarchar (* ptr ); ptr ++ )
51
- * ptr = ' ' ;
49
+ if (ptr [1 ]== ':' )
50
+ ptr += 2 ; /* skip '::' */
51
+ else
52
+ {
53
+ * ptr = '?' ;
54
+ for (++ ptr ; * ptr && isvarchar (* ptr ); ptr ++ )
55
+ * ptr = ' ' ;
56
+ }
52
57
}
53
58
}
54
59
}
You can’t perform that action at this time.
0 commit comments