Skip to content
Discussion options

You must be logged in to vote

The temporary tables you create in r_add_temp_tables.sql (via run_sql from index.sql) live only for the duration of that single database connection. SQLPage may decide to reuse an old connection for a new request or not. The embed links in r_net_chart_by_category.sql are not server-side includes, they are URLs that the browser fetches as separate HTTP requests after the page loads. Each of those fetches potentially gets its own database connection from the pool, which has no access to the temp tables created on the original request's connection, so r_net_chart_by_category_treemap.sql and r_net_chart_by_category_time.sql fail with "no such table". On refresh it sometimes works because the …

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@vsbabu
Comment options

@vsbabu
Comment options

Answer selected by vsbabu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants