workspace stringclasses 1
value | channel stringclasses 1
value | sentences stringlengths 1 3.93k | ts stringlengths 26 26 | user stringlengths 2 11 | sentence_id stringlengths 44 53 | timestamp float64 1.5B 1.56B | __index_level_0__ int64 0 106k |
|---|---|---|---|---|---|---|---|
pythondev | help | idk MySQLdb syntax, so you should check the API yourself. Consider using psycopg2, which support almost all SQL drivers <http://initd.org/psycopg/docs/usage.html> | 2017-12-08T11:52:55.000781 | Wade | pythondev_help_Wade_2017-12-08T11:52:55.000781 | 1,512,733,975.000781 | 102,903 |
pythondev | help | in the usage there is also the example to avoid SQLInjection | 2017-12-08T11:53:09.000380 | Wade | pythondev_help_Wade_2017-12-08T11:53:09.000380 | 1,512,733,989.00038 | 102,904 |
pythondev | help | `psycopg2` supports other dialects? | 2017-12-08T11:59:06.000002 | Patty | pythondev_help_Patty_2017-12-08T11:59:06.000002 | 1,512,734,346.000002 | 102,905 |
pythondev | help | you sure psycopg2 supports mysql?? I can't find anything about it mentioned in their documentation or anywhere else... | 2017-12-08T11:59:58.000634 | Keneth | pythondev_help_Keneth_2017-12-08T11:59:58.000634 | 1,512,734,398.000634 | 102,906 |
pythondev | help | I’m 99% sure `psycopg2` is specifically postgres | 2017-12-08T12:00:41.000212 | Patty | pythondev_help_Patty_2017-12-08T12:00:41.000212 | 1,512,734,441.000212 | 102,907 |
pythondev | help | for mysql he should be using MysqlDb, which also supports DB API2 | 2017-12-08T12:01:14.000089 | Keneth | pythondev_help_Keneth_2017-12-08T12:01:14.000089 | 1,512,734,474.000089 | 102,908 |
pythondev | help | me too, I got really surprised when I read such an statement | 2017-12-08T12:01:33.000285 | Keneth | pythondev_help_Keneth_2017-12-08T12:01:33.000285 | 1,512,734,493.000285 | 102,909 |
pythondev | help | So, maybe should be better using a ORM like SQLAlchemy? | 2017-12-08T12:14:46.000273 | Tangela | pythondev_help_Tangela_2017-12-08T12:14:46.000273 | 1,512,735,286.000273 | 102,910 |
pythondev | help | Realistically you should be using some type of framework that makes it so you don't have to write out the sql statements. I like sqlalchemy, but my experience level is like maybe a total of 50 hours. Some people here can provide you good alternatives. | 2017-12-08T12:22:38.000089 | Glinda | pythondev_help_Glinda_2017-12-08T12:22:38.000089 | 1,512,735,758.000089 | 102,911 |
pythondev | help | <@Patty> <@Keneth> aww gawd, i'm so dumb. Yeah it's postgresql specific :sweat: | 2017-12-08T12:25:33.000172 | Wade | pythondev_help_Wade_2017-12-08T12:25:33.000172 | 1,512,735,933.000172 | 102,912 |
pythondev | help | #sorry | 2017-12-08T12:26:31.000074 | Wade | pythondev_help_Wade_2017-12-08T12:26:31.000074 | 1,512,735,991.000074 | 102,913 |
pythondev | help | I used SQLAlchemy some years ago, was my first touch with a ORM, I guess will not be problematic try to implment, anyway better that use pure sql statements. Thanks <@Wade> <@Patty> <@Keneth> <@Glinda> | 2017-12-08T12:26:59.000238 | Tangela | pythondev_help_Tangela_2017-12-08T12:26:59.000238 | 1,512,736,019.000238 | 102,914 |
pythondev | help | <@Tangela> if you are adventurous enough, give a try to peewee. A simpler and smaller ORM, but yet powerful enough. I've been using it with Flask and I love it. | 2017-12-08T12:28:09.000428 | Keneth | pythondev_help_Keneth_2017-12-08T12:28:09.000428 | 1,512,736,089.000428 | 102,915 |
pythondev | help | it has extensions for some of the most used databases, and it's quite awesome. The author, owner and maintainer helps with doubts on Stackoverflow quite quickly. | 2017-12-08T12:29:05.000032 | Keneth | pythondev_help_Keneth_2017-12-08T12:29:05.000032 | 1,512,736,145.000032 | 102,916 |
pythondev | help | anyway, there's no problem using SQL sentences, if you need them. But the DBApi2 interface supports parameters, which sanitizes the input for you for the values, so things like SQLInjection are less prone. | 2017-12-08T12:30:06.000177 | Keneth | pythondev_help_Keneth_2017-12-08T12:30:06.000177 | 1,512,736,206.000177 | 102,917 |
pythondev | help | Hi ... I am new to django and I keep running to migration problems like `django.db.utils.DatabaseError: ORA-00904: "CORE_COMMAND"."HIGH_RISK_JUSTIFICATION": invalid identifier`. Is there a trick in trouble shooting these sort of issues? | 2017-12-08T12:45:41.000101 | Tennie | pythondev_help_Tennie_2017-12-08T12:45:41.000101 | 1,512,737,141.000101 | 102,918 |
pythondev | help | <@Keneth> +1 for peewee. I tried it and was so smooth and easy | 2017-12-08T12:46:02.000526 | Wade | pythondev_help_Wade_2017-12-08T12:46:02.000526 | 1,512,737,162.000526 | 102,919 |
pythondev | help | is this oracle? | 2017-12-08T12:46:05.000035 | Meg | pythondev_help_Meg_2017-12-08T12:46:05.000035 | 1,512,737,165.000035 | 102,920 |
pythondev | help | yes | 2017-12-08T12:46:18.000331 | Tennie | pythondev_help_Tennie_2017-12-08T12:46:18.000331 | 1,512,737,178.000331 | 102,921 |
pythondev | help | what happens when you google examples of that error | 2017-12-08T12:46:29.000007 | Meg | pythondev_help_Meg_2017-12-08T12:46:29.000007 | 1,512,737,189.000007 | 102,922 |
pythondev | help | not sure how oracle handles it, but invalid identifier seems to me its a bad type or null value when there’s something expected | 2017-12-08T12:47:09.000151 | Meg | pythondev_help_Meg_2017-12-08T12:47:09.000151 | 1,512,737,229.000151 | 102,923 |
pythondev | help | oh its pretty clear that the column high_risk_justifitication does not exist in the core_command table. But the the django core/model.py references that field. | 2017-12-08T12:48:34.000616 | Tennie | pythondev_help_Tennie_2017-12-08T12:48:34.000616 | 1,512,737,314.000616 | 102,924 |
pythondev | help | did you make a migration? | 2017-12-08T12:48:49.000392 | Meg | pythondev_help_Meg_2017-12-08T12:48:49.000392 | 1,512,737,329.000392 | 102,925 |
pythondev | help | a new one, that is | 2017-12-08T12:48:52.000419 | Meg | pythondev_help_Meg_2017-12-08T12:48:52.000419 | 1,512,737,332.000419 | 102,926 |
pythondev | help | and I have done the makemigrations and migrate | 2017-12-08T12:49:04.000407 | Tennie | pythondev_help_Tennie_2017-12-08T12:49:04.000407 | 1,512,737,344.000407 | 102,927 |
pythondev | help | is the first in the migrations? | 2017-12-08T12:50:03.000401 | Patty | pythondev_help_Patty_2017-12-08T12:50:03.000401 | 1,512,737,403.000401 | 102,928 |
pythondev | help | about the only thing I can think of is there’s some sort of migration out of order. | 2017-12-08T12:50:19.000341 | Meg | pythondev_help_Meg_2017-12-08T12:50:19.000341 | 1,512,737,419.000341 | 102,929 |
pythondev | help | or one didn’t generate correctly and the SQL may show the field wasnt being created | 2017-12-08T12:50:40.000267 | Patty | pythondev_help_Patty_2017-12-08T12:50:40.000267 | 1,512,737,440.000267 | 102,930 |
pythondev | help | is this a new column name, or is it being re-used from a previously deleted/renamed column? | 2017-12-08T12:51:13.000477 | Meg | pythondev_help_Meg_2017-12-08T12:51:13.000477 | 1,512,737,473.000477 | 102,931 |
pythondev | help | There is a migration file that adds so I'd say it s new column | 2017-12-08T12:54:43.000474 | Tennie | pythondev_help_Tennie_2017-12-08T12:54:43.000474 | 1,512,737,683.000474 | 102,932 |
pythondev | help | do you set a default value for the field? | 2017-12-08T12:55:33.000327 | Meg | pythondev_help_Meg_2017-12-08T12:55:33.000327 | 1,512,737,733.000327 | 102,933 |
pythondev | help | would zapping the pyc files help at all or be a disaster | 2017-12-08T12:55:34.000152 | Tennie | pythondev_help_Tennie_2017-12-08T12:55:34.000152 | 1,512,737,734.000152 | 102,934 |
pythondev | help | I'll check for a default value | 2017-12-08T12:55:47.000070 | Tennie | pythondev_help_Tennie_2017-12-08T12:55:47.000070 | 1,512,737,747.00007 | 102,935 |
pythondev | help | nope no default value | 2017-12-08T12:56:24.000672 | Tennie | pythondev_help_Tennie_2017-12-08T12:56:24.000672 | 1,512,737,784.000672 | 102,936 |
pythondev | help | ok, if the field is not nullable, that’s a bad thing | 2017-12-08T12:56:54.000158 | Meg | pythondev_help_Meg_2017-12-08T12:56:54.000158 | 1,512,737,814.000158 | 102,937 |
pythondev | help | because if you’re changing a db table by adding in a not null field,you need to specify _some_ value to be inserted | 2017-12-08T12:57:18.000079 | Meg | pythondev_help_Meg_2017-12-08T12:57:18.000079 | 1,512,737,838.000079 | 102,938 |
pythondev | help | ` high_risk_justification = models.TextField(blank=True, null=True)` | 2017-12-08T12:57:23.000650 | Tennie | pythondev_help_Tennie_2017-12-08T12:57:23.000650 | 1,512,737,843.00065 | 102,939 |
pythondev | help | so I need to add a default? | 2017-12-08T12:57:51.000329 | Tennie | pythondev_help_Tennie_2017-12-08T12:57:51.000329 | 1,512,737,871.000329 | 102,940 |
pythondev | help | looks like it is nullable ... | 2017-12-08T12:58:16.000260 | Tennie | pythondev_help_Tennie_2017-12-08T12:58:16.000260 | 1,512,737,896.00026 | 102,941 |
pythondev | help | what I’d do is remove `null = True` | 2017-12-08T12:58:23.000292 | Meg | pythondev_help_Meg_2017-12-08T12:58:23.000292 | 1,512,737,903.000292 | 102,942 |
pythondev | help | <https://simpleisbetterthancomplex.com/tips/2016/07/25/django-tip-8-blank-or-null.html> | 2017-12-08T12:58:32.000157 | Meg | pythondev_help_Meg_2017-12-08T12:58:32.000157 | 1,512,737,912.000157 | 102,943 |
pythondev | help | >Now, where most developers get it wrong: Defining null=True for string-based fields such as CharField and TextField. Avoid doing that. Otherwise, you will end up having two possible values for “no data”, that is: None and an empty string. Having two possible values for “no data” is redundant. The Django convention ... | 2017-12-08T12:58:51.000699 | Meg | pythondev_help_Meg_2017-12-08T12:58:51.000699 | 1,512,737,931.000699 | 102,944 |
pythondev | help | would that fix my oracle ORA-00904 issue or is that just a best practice suggestion | 2017-12-08T12:59:47.000199 | Tennie | pythondev_help_Tennie_2017-12-08T12:59:47.000199 | 1,512,737,987.000199 | 102,945 |
pythondev | help | best practice | 2017-12-08T12:59:54.000195 | Meg | pythondev_help_Meg_2017-12-08T12:59:54.000195 | 1,512,737,994.000195 | 102,946 |
pythondev | help | because I really don’t have a clue why that migration error is happening | 2017-12-08T13:00:13.000140 | Meg | pythondev_help_Meg_2017-12-08T13:00:13.000140 | 1,512,738,013.00014 | 102,947 |
pythondev | help | if you run `manage.py migrate --list` do you have any unapplied migrations other than that one | 2017-12-08T13:00:36.000464 | Meg | pythondev_help_Meg_2017-12-08T13:00:36.000464 | 1,512,738,036.000464 | 102,948 |
pythondev | help | cool thanks I'll try that | 2017-12-08T13:00:46.000013 | Tennie | pythondev_help_Tennie_2017-12-08T13:00:46.000013 | 1,512,738,046.000013 | 102,949 |
pythondev | help | turned out that my django db user does not have privs to drop the tables before running my tests | 2017-12-08T14:13:31.000445 | Tennie | pythondev_help_Tennie_2017-12-08T14:13:31.000445 | 1,512,742,411.000445 | 102,950 |
pythondev | help | so I had to log in via sqlplus as more priv'ed user and drop the tables | 2017-12-08T14:14:04.000018 | Tennie | pythondev_help_Tennie_2017-12-08T14:14:04.000018 | 1,512,742,444.000018 | 102,951 |
pythondev | help | interesting. too bad the migration errror didn’t give more detail about that… | 2017-12-08T14:18:16.000632 | Meg | pythondev_help_Meg_2017-12-08T14:18:16.000632 | 1,512,742,696.000632 | 102,952 |
pythondev | help | nice find though | 2017-12-08T14:18:21.000050 | Meg | pythondev_help_Meg_2017-12-08T14:18:21.000050 | 1,512,742,701.00005 | 102,953 |
pythondev | help | after an `os.fork()`, from a a child process, how do I pick up from the parent process when the child calls `os._exit(n)`? I don't want my parent to wait on the child because I need to fork a few times, I just want to be able to poll for when all child processes have completed and then continue execution from there | 2017-12-08T14:46:33.000303 | Lory | pythondev_help_Lory_2017-12-08T14:46:33.000303 | 1,512,744,393.000303 | 102,954 |
pythondev | help | is there any way you can refactor from fork to use suprocess instead? | 2017-12-08T14:50:01.000094 | Meg | pythondev_help_Meg_2017-12-08T14:50:01.000094 | 1,512,744,601.000094 | 102,955 |
pythondev | help | That's the eventual goal but I'm trying to understand the root basics of forks and inter process communication before I use subprocess to hide the details | 2017-12-08T14:51:06.000532 | Lory | pythondev_help_Lory_2017-12-08T14:51:06.000532 | 1,512,744,666.000532 | 102,956 |
pythondev | help | That and I tried it with subprocess first when I initially wrote the code but failed and ended up running everything in serial instead because it was simpler and faster to develop, but now I have time to go back and learn more about it so I'm starting at the very bottom | 2017-12-08T14:53:00.000149 | Lory | pythondev_help_Lory_2017-12-08T14:53:00.000149 | 1,512,744,780.000149 | 102,957 |
pythondev | help | It's easier to learn when I can see the actual forks and exits and everything happening within the code itself | 2017-12-08T14:53:30.000011 | Lory | pythondev_help_Lory_2017-12-08T14:53:30.000011 | 1,512,744,810.000011 | 102,958 |
pythondev | help | Hey, is anyone keen to briefly discuss a database design 2-3 tables with me ? | 2017-12-08T17:38:45.000460 | Aliza | pythondev_help_Aliza_2017-12-08T17:38:45.000460 | 1,512,754,725.00046 | 102,959 |
pythondev | help | Hi guys one of my friend told to use a IDE that will show code in left and it's output in right while typing | 2017-12-08T21:14:17.000121 | Bette | pythondev_help_Bette_2017-12-08T21:14:17.000121 | 1,512,767,657.000121 | 102,960 |
pythondev | help | So that my code understanding will be improved like that he told can anyone name such IDE for python ? | 2017-12-08T21:15:00.000030 | Bette | pythondev_help_Bette_2017-12-08T21:15:00.000030 | 1,512,767,700.00003 | 102,961 |
pythondev | help | It doesn't quite work like that in Python. You write a script, execute the code and you can display output using the print function, either in your terminal or an IDE. It doesn't just output on the fly. Try a simple editor/ide like IDLE, which comes bundled with Python | 2017-12-08T21:18:07.000084 | Corrinne | pythondev_help_Corrinne_2017-12-08T21:18:07.000084 | 1,512,767,887.000084 | 102,962 |
pythondev | help | Ok Julian I got your point | 2017-12-08T21:22:08.000042 | Bette | pythondev_help_Bette_2017-12-08T21:22:08.000042 | 1,512,768,128.000042 | 102,963 |
pythondev | help | My friend also suggested me to improve my logical skills in programming | 2017-12-08T21:23:25.000018 | Bette | pythondev_help_Bette_2017-12-08T21:23:25.000018 | 1,512,768,205.000018 | 102,964 |
pythondev | help | Apart from programming skills how did you improved your logical skills ? | 2017-12-08T21:23:57.000060 | Bette | pythondev_help_Bette_2017-12-08T21:23:57.000060 | 1,512,768,237.00006 | 102,965 |
pythondev | help | Any tips | 2017-12-08T21:24:02.000085 | Bette | pythondev_help_Bette_2017-12-08T21:24:02.000085 | 1,512,768,242.000085 | 102,966 |
pythondev | help | Some understanding of logic, specifically symbolic logic, is good for any programming language. | 2017-12-08T21:40:52.000092 | Nicole | pythondev_help_Nicole_2017-12-08T21:40:52.000092 | 1,512,769,252.000092 | 102,967 |
pythondev | help | But I'd probably not recommend a new student rush out and sign up for a course in it. | 2017-12-08T21:42:20.000077 | Nicole | pythondev_help_Nicole_2017-12-08T21:42:20.000077 | 1,512,769,340.000077 | 102,968 |
pythondev | help | Symbolic logic ? | 2017-12-08T22:49:20.000062 | Bette | pythondev_help_Bette_2017-12-08T22:49:20.000062 | 1,512,773,360.000062 | 102,969 |
pythondev | help | Never heard about it but will check | 2017-12-08T22:49:36.000005 | Bette | pythondev_help_Bette_2017-12-08T22:49:36.000005 | 1,512,773,376.000005 | 102,970 |
pythondev | help | I read that it was containing some weired writing for substituting some thing,how it can be useful for programming? | 2017-12-08T23:05:02.000061 | Bette | pythondev_help_Bette_2017-12-08T23:05:02.000061 | 1,512,774,302.000061 | 102,971 |
pythondev | help | <@Bette> hi i read it jsut now. iam doing a concept of katas. thereby you do small tasks in a TDD driven way and solve algorythmic puzzles. check this site, codewars, its quire nice and you can chose from many languages, also python is well supported <http://www.codewars.com/r/6syqMA|www.codewars.com/r/6syqMA> | 2017-12-09T02:49:03.000004 | Blaine | pythondev_help_Blaine_2017-12-09T02:49:03.000004 | 1,512,787,743.000004 | 102,972 |
pythondev | help | Thank you Paul I hope it's not math specific because I am really bad in math :wink: | 2017-12-09T03:05:45.000026 | Bette | pythondev_help_Bette_2017-12-09T03:05:45.000026 | 1,512,788,745.000026 | 102,973 |
pythondev | help | :wink: as all things in the world logic is trainable, espacilly a type b language logic, read here for katas <https://en.wikipedia.org/wiki/Kata_(programming)> and be ensured. it comes by contemplating and doing it, and there will be MATH dont be mad, read the texts think, brute force them and with time you will get be... | 2017-12-09T03:12:44.000042 | Blaine | pythondev_help_Blaine_2017-12-09T03:12:44.000042 | 1,512,789,164.000042 | 102,974 |
pythondev | help | Guy, there some problem in store a url(domain) into database? Here I am getting
'_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '['<http://00author.com|00author.com>'])' at line 1")' | 2017-12-09T05:13:03.000071 | Tangela | pythondev_help_Tangela_2017-12-09T05:13:03.000071 | 1,512,796,383.000071 | 102,975 |
pythondev | help | what's the full query? | 2017-12-09T05:28:39.000003 | Suellen | pythondev_help_Suellen_2017-12-09T05:28:39.000003 | 1,512,797,319.000003 | 102,976 |
pythondev | help | db_cursor.execute('INSERT INTO {table_name}s{table_name} VALUES({row})'.format(table_name=table_name, row=row))
I know that's a good choice use in this wat because of SQLInjection. However I prefer deal with after | 2017-12-09T05:33:36.000025 | Tangela | pythondev_help_Tangela_2017-12-09T05:33:36.000025 | 1,512,797,616.000025 | 102,977 |
pythondev | help | :confused: | 2017-12-09T05:33:49.000045 | Suellen | pythondev_help_Suellen_2017-12-09T05:33:49.000045 | 1,512,797,629.000045 | 102,978 |
pythondev | help | When I used other approach previously, worked perfectly... | 2017-12-09T05:37:49.000068 | Tangela | pythondev_help_Tangela_2017-12-09T05:37:49.000068 | 1,512,797,869.000068 | 102,979 |
pythondev | help | <@Tangela>: You should never do it that way; it's actually usually simpler to do it without a `.format()`. | 2017-12-09T05:41:49.000016 | Louis | pythondev_help_Louis_2017-12-09T05:41:49.000016 | 1,512,798,109.000016 | 102,980 |
pythondev | help | And it's not just about SQL injection attacks; you have to quote the values correctly just for the query to work correctly at all, in the first place, so you don't have problems like the above. | 2017-12-09T05:42:26.000070 | Louis | pythondev_help_Louis_2017-12-09T05:42:26.000070 | 1,512,798,146.00007 | 102,981 |
pythondev | help | <@Louis> I know that's dangerous, I am just using this way because is I'm trying to find the error point so I did simple just to debug easier. Do you mean quote the {row} value? Well, I tried put into double quotes, what print something like VALUES("[\'<http://00author.com|00author.com>\']")\' However I get the same e... | 2017-12-09T05:53:56.000049 | Tangela | pythondev_help_Tangela_2017-12-09T05:53:56.000049 | 1,512,798,836.000049 | 102,982 |
pythondev | help | <@Tangela>: Well, it's not just dangerous; it often just won't work at all. :) | 2017-12-09T05:54:24.000027 | Louis | pythondev_help_Louis_2017-12-09T05:54:24.000027 | 1,512,798,864.000027 | 102,983 |
pythondev | help | Python string escaping just is not the same as DB escaping. | 2017-12-09T05:54:35.000076 | Louis | pythondev_help_Louis_2017-12-09T05:54:35.000076 | 1,512,798,875.000076 | 102,984 |
pythondev | help | If it worked before, it only worked by accident. | 2017-12-09T05:54:45.000050 | Louis | pythondev_help_Louis_2017-12-09T05:54:45.000050 | 1,512,798,885.00005 | 102,985 |
pythondev | help | What's the actual data you have, and the query you want? | 2017-12-09T05:55:07.000049 | Louis | pythondev_help_Louis_2017-12-09T05:55:07.000049 | 1,512,798,907.000049 | 102,986 |
pythondev | help | I have a list of domain and url's, I want insert into database, There are so many entries, so I using a loop. | 2017-12-09T05:57:04.000051 | Tangela | pythondev_help_Tangela_2017-12-09T05:57:04.000051 | 1,512,799,024.000051 | 102,987 |
pythondev | help | You can do it in a single `executemany()`, without a loop. | 2017-12-09T05:57:52.000025 | Louis | pythondev_help_Louis_2017-12-09T05:57:52.000025 | 1,512,799,072.000025 | 102,988 |
pythondev | help | What are the rows? | 2017-12-09T05:58:02.000033 | Louis | pythondev_help_Louis_2017-12-09T05:58:02.000033 | 1,512,799,082.000033 | 102,989 |
pythondev | help | row in this case are each line of file | 2017-12-09T05:58:56.000023 | Tangela | pythondev_help_Tangela_2017-12-09T05:58:56.000023 | 1,512,799,136.000023 | 102,990 |
pythondev | help | I know, but what's the structure? What are the columns? | 2017-12-09T05:59:38.000019 | Louis | pythondev_help_Louis_2017-12-09T05:59:38.000019 | 1,512,799,178.000019 | 102,991 |
pythondev | help | #ID #DOMAIN | 2017-12-09T06:00:28.000043 | Tangela | pythondev_help_Tangela_2017-12-09T06:00:28.000043 | 1,512,799,228.000043 | 102,992 |
pythondev | help | Note that adding the table name into the query is a special case: That's part of the query construction itself, rather than data parameters going into the query. | 2017-12-09T06:18:58.000063 | Louis | pythondev_help_Louis_2017-12-09T06:18:58.000063 | 1,512,800,338.000063 | 102,993 |
pythondev | help | (That's why it's separate.) | 2017-12-09T06:19:05.000061 | Louis | pythondev_help_Louis_2017-12-09T06:19:05.000061 | 1,512,800,345.000061 | 102,994 |
pythondev | help | <@Louis> Tried your code, I got this error: *TypeError: not enough arguments for format string* maybe is because of *%* | 2017-12-09T06:28:16.000021 | Tangela | pythondev_help_Tangela_2017-12-09T06:28:16.000021 | 1,512,800,896.000021 | 102,995 |
pythondev | help | Where do you get that error? | 2017-12-09T06:29:01.000036 | Louis | pythondev_help_Louis_2017-12-09T06:29:01.000036 | 1,512,800,941.000036 | 102,996 |
pythondev | help | on this line: db_cursor.executemany(query, rows) | 2017-12-09T06:29:53.000060 | Tangela | pythondev_help_Tangela_2017-12-09T06:29:53.000060 | 1,512,800,993.00006 | 102,997 |
pythondev | help | I'm using Python 2.7 I don't know if changed something about on 3.5 version | 2017-12-09T06:33:19.000064 | Tangela | pythondev_help_Tangela_2017-12-09T06:33:19.000064 | 1,512,801,199.000064 | 102,998 |
pythondev | help | That probably means the CSV rows aren't actually two columns? | 2017-12-09T06:41:29.000034 | Louis | pythondev_help_Louis_2017-12-09T06:41:29.000034 | 1,512,801,689.000034 | 102,999 |
pythondev | help | Not in really, I made some adjustments so now seem work fine, but now I got problem with another syntax problem while executing *executemany* | 2017-12-09T06:45:40.000087 | Tangela | pythondev_help_Tangela_2017-12-09T06:45:40.000087 | 1,512,801,940.000087 | 103,000 |
pythondev | help | *_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'domain VALUES ('<http://00author.com|00author.com>'),('<http://00go.com|00go.com>'),('<http://00it.com|00it.com>'),('<http://03e.info|03e.in... | 2017-12-09T06:46:22.000071 | Tangela | pythondev_help_Tangela_2017-12-09T06:46:22.000071 | 1,512,801,982.000071 | 103,001 |
pythondev | help | the new query is as follow: *query = 'INSERT INTO {}s {} VALUES (%s)'.format(table_name, table_name)* | 2017-12-09T06:46:57.000054 | Tangela | pythondev_help_Tangela_2017-12-09T06:46:57.000054 | 1,512,802,017.000054 | 103,002 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.