Skip to content
Snippets Groups Projects
Commit a6a8e303 authored by Stephen R. van den Berg's avatar Stephen R. van den Berg
Browse files

Clear dangling cache entry for CREATE statements.

Rev: CHANGES:1.204
Rev: lib/modules/Sql.pmod/pgsql.pike:1.73
parent 9e1930cb
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,9 @@ o String.normalize_space ...@@ -18,6 +18,9 @@ o String.normalize_space
Bug fixes Bug fixes
--------- ---------
o Fixed dangling cache reference in prepared statements when using CREATE
statements via Sql.pgsql.
o Improved widestring support for Parser.Tabular. o Improved widestring support for Parser.Tabular.
o Fixed segfault in combine_path_nt on windows when the first char o Fixed segfault in combine_path_nt on windows when the first char
......
...@@ -1687,7 +1687,7 @@ object big_query(string q,void|mapping(string|int:mixed) bindings, ...@@ -1687,7 +1687,7 @@ object big_query(string q,void|mapping(string|int:mixed) bindings,
} }
} }
if(forcecache!=1 && createprefix->match(q)) // Flush cache on CREATE if(forcecache!=1 && createprefix->match(q)) // Flush cache on CREATE
invalidatecache=1; invalidatecache=1,tp=UNDEFINED;
else else
prepareds[q]=tp=([]); prepareds[q]=tp=([]);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment