adonetsamples /EntityFramework/Beta2/Entity Framework Query Samples /LinqToEntitiesSamples.cs
39.
40. var query = from cust in northwindContext.Customers
41. where cust.ContactTitle == "Sales Representative"
42. select cust;
43.
44. ObjectDumper.Write(query);
45. }
46.
52. {
53. DateTime dt = new DateTime(1994, 1, 1);
54. var query = from order in northwindContext.Orders
55. where order.OrderDate > dt
56. select order;
57.
193 matches | 1197 lines | C# | CodePlex
adonetsamples /EntityFramework/Beta1/LINQ101/C#/SampleQueries /LinqToEntitiesSamples.cs
51.
52. var query = from cust in northwindContext.Customers
53. where cust.City == "Seattle"
54. select cust;
55.
56. ObjectDumper.Write(query);
57. }
58.
64. {
65. DateTime dt = new DateTime(1994, 1, 1);
66. var query = from order in northwindContext.Orders
67. where order.OrderDate > dt
68. select order;
69.
225 matches | 1699 lines | C# | CodePlex
adonetsamples /EntityFramework/Beta3/Entity Framework Query Samples /LinqToEntitiesSamples.cs
23.
24. var query = from cust in context.Customers
25. where cust.ContactTitle == "Sales Representative"
26. select cust;
27.
28. ObjectDumper.Write(query);
29. }
30.
35. {
36. DateTime dt = new DateTime(1997, 1, 1);
37. var query = from order in context.Orders
38. where order.OrderDate < dt
39. select order;
40.
196 matches | 1210 lines | C# | CodePlex
zport /miles/GlobalMBA/mba/sns_00/upload/home/source /function_delete.php
20. $reward = getreward('delcomment', 0);
21. $query = $_SGLOBAL['db']->query("SELECT * FROM ".tname('comment')." WHERE cid IN (".simplode($cids).")");
22. while ($value = $_SGLOBAL['db']->fetch_array($query)) {
23. if($allowmanage || $value['authorid'] == $_SGLOBAL['supe_uid'] || $value['uid'] == $_SGLOBAL['supe_uid']) {
24. $dels[] = $value;
38. if($allowmanage && $value['authorid'] != $value['supe_uid']) {
39. //????
40. $_SGLOBAL['db']->query("UPDATE ".tname('space')." SET credit=credit-$reward[credit], experience=experience-$reward[experience] WHERE uid='$value[authorid]'");
41. }
42. }
43.
44. //????
45. $_SGLOBAL['db']->query("DELETE FROM ".tname('comment')." WHERE cid IN (".simplode($newcids).")");
46.
181 matches | 1016 lines | PHP | CodePlex
php-src /ext/interbase /ibase_query.c
51. ibase_trans *trans;
52. struct _ib_query *query;
53. isc_stmt_handle stmt;
54. unsigned short type;
58. } ibase_result;
59.
60. typedef struct _ib_query {
61. ibase_db_link *link;
62. ibase_trans *trans;
69. unsigned short dialect;
70. char statement_type;
71. char *query;
72. long trans_res_id;
73. } ibase_query;
234 matches | 2103 lines | C | GitHub
oxybase /project/library/Doctrine/Query /Abstract.php
64.
65. /** @todo document the query states (and the transitions between them). */
66. /**
67. * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts.
68. */
69. const STATE_CLEAN = 1;
70.
71. /**
72. * A query object is in state DIRTY when it has DQL parts that have not yet been
73. * parsed/processed.
74. */
76.
77. /**
78. * A query is in DIRECT state when ... ?
191 matches | 2111 lines | PHP | Google Code
suziwen /wordpress/wp-includes /query.php
4. *
5. * The query API attempts to get which part of WordPress to the user is on. It
6. * also provides functionality to getting URL query information.
7. *
8. * @link http://codex.wordpress.org/The_Loop More information on The Loop.
17. * @see WP_Query::get()
18. * @since 1.5.0
19. * @uses $wp_query
20. *
21. * @param string $var The variable key to retrieve.
22. * @return mixed
23. */
24. function get_query_var($var) {
25. global $wp_query;
231 matches | 2537 lines | PHP | Google Code
pau /plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query /Abstract.php
64.
65. /** @todo document the query states (and the transitions between them). */
66. /**
67. * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts.
68. */
69. const STATE_CLEAN = 1;
70.
71. /**
72. * A query object is in state DIRTY when it has DQL parts that have not yet been
73. * parsed/processed.
74. */
76.
77. /**
78. * A query is in DIRECT state when ... ?
193 matches | 2109 lines | PHP | Google Code
hdforall /adult /tjoob.php
161. <title>Most Recent</title>
162. <link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/videos/all/date-</link>
163. </item>
164. <item><title>Japanese</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/japanese/top-</link></item>
165. <item><title>Amateur</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/amateur/top-</link></item>
166. <item><title>Asian</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/asian/top-</link></item>
167. <item><title>MILF</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/MILF/top-</link></item>
168. <item><title>Big Tits</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/big-tits/top-</link></item>
169. <item><title>Ebony</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/ebony/top-</link></item>
170. <item><title>Mature</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/mature/top-</link></item>
171. <item><title>Teens</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/teens/top-</link></item>
172. <item><title>Classic Porn</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/classic-porn/top-</link></item>
173. <item><title>Anal</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/anal/top-</link></item>
174. <item><title>Mega Tits</title><link><?php echo $host; ?>/scripts/adult/php/tjoob.php?query=1,http://www.tjoob.com/categories/mega-tits/top-</link></item>
396 matches | 559 lines | PHP | Google Code
ivr /ivr /common.lua
233.
234. query1 = "INSERT INTO AO_message (user_id, content_file, date";
235. query2 = " VALUES ("..userid..",'"..partfilename.."',".."now()";
236.
237. if (thread ~= nil) then -- this is a response
238. query = "UPDATE AO_message SET rgt=rgt+2 WHERE rgt >=" .. rgt .. " AND (thread_id = " .. thread .. " OR id = " .. thread .. ")";
239. con:execute(query);
240. freeswitch.consoleLog("info", script_name .. " : " .. query .. "\n")
241. query = "UPDATE AO_message SET lft=lft+2 WHERE lft >=" .. rgt .. " AND (thread_id = " .. thread .. " OR id = " .. thread .. ")";
242. con:execute(query);
243. freeswitch.consoleLog("info", script_name .. " : " .. query .. "\n")
244. query1 = query1 .. ", thread_id, lft, rgt)";
245. query2 = query2 .. ",'" .. thread .. "','" .. rgt .. "','" .. rgt+1 .. "')";
246. else
109 matches | 957 lines | Lua | Google Code
php52-backports /ext/interbase /ibase_query.c
18.
19. /* $Id: ibase_query.c 293036 2010-01-03 09:23:27Z sebastian $ */
20.
21. #ifdef HAVE_CONFIG_H
67. unsigned short dialect;
68. char statement_type;
69. char *query;
70. long trans_res_id;
71. } ibase_query;
72.
73. typedef struct {
92. } BIND_BUF;
93.
94. static int le_result, le_query;
228 matches | 2120 lines | C | Google Code
xplib /zeoslib/test/bugreport /ZTestBugCompMySql.pas
144. "Duplicate field name" exception
145. Initial Comment: When I use a query like this:
146.
147. SELECT * FROM TableA
418.
419. Aliases for fields do not work. Result Set after
420. execution SQL query do not contain the aliased fields.
421. }
422. procedure TZTestCompMySQLBugReport.Test739444;
483.
484. The TZQuery with TZUpdateObject can't update records
485. when left outer joins is used in sql query.
486. }
487. procedure TZTestCompMySQLBugReport.Test727373;
4 matches | 1617 lines | Pascal | Google Code
xplib /zeoslib/test/bugreport /ZTestBugCompCore.pas
575.
576. zquery1 has a working connection, fielddefs, and SQL
577. statement, but zquery1.state=dsInactive (not opened).
578. zquery1.fieldbyname('field1').asstring:='text' causes an
579. access violation in ZAbstractRODataset, because it try
580. to execute the assign.
582. (eg can't modify a closed dataset)
583.
584. when zquery1 is opened (state=dsBrowse), there is no
585. error. ZAbstractRODataset (or else) should check for
586. dsBrowse state too, and should throw an other
803. {**
804. Bug report#826886.
805. Access Violation with a simple query
7 matches | 1850 lines | Pascal | Google Code
xplib /zeoslib/test/component /ZTestDataSetGeneric.pas
763. begin
764. (Query as TZquery).SQL.Text := SQL;
765. (Query as TZquery).ExecSQL;
766. end
767. else
774. SQL := 'SELECT * FROM equipment where eq_id > 100';
775. if GetName = 'TestQuery' then
776. (Query as TZquery).SQL.Text := SQL
777. else
778. (Query as TZReadOnlyQuery).SQL.Text := SQL;
787. SQL := 'SELECT * FROM equipment where eq_id = 1';
788. if GetName = 'TestQuery' then
789. (Query as TZquery).SQL.Text := SQL
790. else
6 matches | 1478 lines | Pascal | Google Code
xappy /xappy /searchconnection.py
46. DocumentIter, SynonymIter, _allocate_id
47. from query import Query
48. from searchresults import SearchResults, SearchResultContext
49. from mset_search_results import FacetResults, NoFacetResults, \
178. self._next_docid = 0
179. self._facet_hierarchy = {}
180. self._facet_query_table = {}
181. return
182.
185. mappings,
186. self._facet_hierarchy,
187. self._facet_query_table,
188. self._next_docid) = _cPickle.loads(config_str)
189. self._field_actions = ActionSet()
187 matches | 1509 lines | Python | Google Code
ossbuild /Main/GStreamer/Source/gstreamer/gst /gstquery.c
5. *
6. * gstquery.c: GstQueryType registration and Query parsing/creation
7. *
8. * This library is free software; you can redistribute it and/or
23.
24. /**
25. * SECTION:gstquery
26. * @short_description: Dynamically register new query types. Provide functions
27. * to create queries, and to set and parse values in them.
28. * @see_also: #GstPad, #GstElement
29. *
30. * GstQuery functions are used to register new query types to the gstreamer
31. * core and use them.
32. * Queries can be performed on pads (gst_pad_query()) and elements
370 matches | 1484 lines | C | Google Code
Denemo /src /scheme_cb.h
3. DenemoScriptParam param;
4. GString *gstr=NULL;
8. str = scm_to_locale_stringn(optional, &length);
9. gstr = g_string_new_len(str, length);
10. if(!strncmp("query",str,5)) query = TRUE; }
11. param.string = gstr;
12. param.status = FALSE;
13.
14. cursorleft_cb (NULL, ¶m);
15. if(param.status && query) return scm_makfrom0str (gstr->str); if(gstr) g_string_free(gstr, TRUE);
16. return SCM_BOOL(param.status);
17. }
18. SCM scheme_MoveCursorLeft (SCM optional) {
19. gboolean query=FALSE;
350 matches | 1982 lines | C/C++ Header
opac-sbweb /plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Query /Abstract.php
64.
65. /** @todo document the query states (and the transitions between them). */
66. /**
67. * A query object is in CLEAN state when it has NO unparsed/unprocessed DQL parts.
68. */
69. const STATE_CLEAN = 1;
70.
71. /**
72. * A query object is in state DIRTY when it has DQL parts that have not yet been
73. * parsed/processed.
74. */
76.
77. /**
78. * A query is in DIRECT state when ... ?
187 matches | 2080 lines | PHP | Google Code
fastcgi++ /include/asql /query.hpp
12. {
13. //! Parent class for storing query data to be passed and retrieved from statements.
14. /*!
15. * Most of the data is stored in a shared data structure that is referenced
16. * by copies of a QueryPar object. The only non-shared data stored in the
17. * class is the m_flags object which set's two possible flags. If the query
18. * is built from the default constructor, the FLAG_ORIGINAL flag is set. This
19. * serves the purpose of keeping track of which query object actually owns
20. * the original data. With this, one can have the query cancelled in it's
21. * handler thread if the original query object goes out of scope in it's own
22. * thread. If one wishes to avoid this behaviour they can have the
23. * FLAG_KEEPALIVE flag set with the keepAlive() function.
28. {
29. private:
69 matches | 734 lines | C/C++ Header
PythonWebkit /Websites/webkit.org/blog/wp-includes /query.php
4. *
5. * The query API attempts to get which part of WordPress to the user is on. It
6. * also provides functionality to getting URL query information.
7. *
8. * @link http://codex.wordpress.org/The_Loop More information on The Loop.
17. * @see WP_Query::get()
18. * @since 1.5.0
19. * @uses $wp_query
20. *
21. * @param string $var The variable key to retrieve.
22. * @return mixed
23. */
24. function get_query_var($var) {
25. global $wp_query;
227 matches | 2488 lines | PHP

